blockcypher / php-client

PHP wrapper for the BlockCypher APIs
Apache License 2.0
51 stars 85 forks source link

Got Http response code 400 when accessing https://api.blockcypher.com/v1/btc/test3/txs/send?token=xxxxx #84

Closed tokhunts closed 4 years ago

tokhunts commented 5 years ago

I already creating and sign transaction . sign() return this json-> TXSkeleton {#784 ▼ -_propMap: array:4 [▼ "tx" => TX {#787 ▼ -_propMap: array:17 [▼ "block_height" => -1 "block_index" => -1 "hash" => "0cdb43c280c6d5ee481959762e8e2e93560be239b8f05bb7be4747c3caab1a8f" "addresses" => array:2 [▼ 0 => "n3D2YXwvpoPg8FhcWpzJiS3SvKKGD8AXZ4" 1 => "mvwhcFDFjmbDWCwVJ73b8DcG6bso3CZXDj" ] "total" => 175089574 "fees" => 8100 "size" => 119 "preference" => "high" "relayed_by" => "37.252.82.40" "received" => "2018-10-17T09:22:56.325076345Z" "ver" => 1 "double_spend" => false "vin_sz" => 1 "vout_sz" => 2 "confirmations" => 0 "inputs" => array:1 [▼ 0 => TXInput {#852 ▼ -_propMap: array:7 [▼ "prev_hash" => "899eecabb4c2a065f78326106031e75d57ecede5e4e240c1576a790cbb812f2a" "output_index" => 1 "output_value" => 175097674 "sequence" => 4294967295.0 "addresses" => array:1 [▼ 0 => "n3D2YXwvpoPg8FhcWpzJiS3SvKKGD8AXZ4" ] "script_type" => "pay-to-pubkey-hash" "age" => 1438112 ] } ] "outputs" => array:2 [▼ 0 => TXOutput {#889 ▼ -_propMap: array:4 [▼ "value" => 5000 "script" => "76a914a93806b8ae200fffca565f7cf9ef3ab17d4ffe8888ac" "addresses" => array:1 [▼ 0 => "mvwhcFDFjmbDWCwVJ73b8DcG6bso3CZXDj" ] "script_type" => "pay-to-pubkey-hash" ] } 1 => TXOutput {#908 ▼ -_propMap: array:4 [▼ "value" => 175084574 "script" => "76a914edeed3ce7f485e44bc33969af08ec9250510f83f88ac" "addresses" => array:1 [▼ 0 => "n3D2YXwvpoPg8FhcWpzJiS3SvKKGD8AXZ4" ] "script_type" => "pay-to-pubkey-hash" ] } ] ] } "tosign" => array:1 [▼ 0 => "2eda8e54071b4f71b351f390e550ad98cfbaa72ffe7854b8a4c28333d93bdede" ] "signatures" => array:1 [▼ 0 => "304502210088f0fc1e2ba6b7e8ce590a76c8f969c09bcca4a8141c8c1bc5a3a6a9e37cfe3a022067d219aed80f8c24511c9705954d13e634b197bb8dbd5f5fdcd3f6f3d8871dc7" ] "pubkeys" => array:1 [▼ 0 => "0474cb62e999bdf96c9b4ef8a2b44c1ac54d9de879e2ee666fdbbf0e1a03090cdfa2c551c9a91cfdb2a4825040d3a25d38da8ac435a1803bdd39ed876610e10928" ] ] } and when sending , get me Got Http response code 400 when accessing https://api.blockcypher.com/v1/btc/test3/txs/send?token=xxxxxx