bitcore-node
bitcore-node copied to clipboard
Not able to send raw transaction
I'm trying to request below api but showing me bitcore-node error. Please check below error.
Request :
https://test-insight.bitpay.com:443/api/tx/send
rawtx : 01000000011a088f8aff54a12f28378c26ead48bcbf4ddf2eb05547b25f7730f30fe400be302000000da004830450221008067cd1211106a34fa1f1c72bb3cff5aae659e745bda114c399d453ef82198b402203a52b1e4757a45f32c7c584489163971f84850b0eceda76612fb1f7cd06f0f630147304402207f2538f833188a98172d51621cdc25a76d35058ad1ef28bf29ee1a33a6dbe0a2022074e719166e723eda99187564263531c041162e99a5812b244c1f825166e06b4101475221029d09dfe88ee5b3ade74614581bd10f8eff8fb87c72764446afa807dc796f66f82102ff19143502122a61ba37e0b731dd51d22374d85da762c9faac56bcee8fcd362952aeffffffff03a08601000000000017a9146e6e0cb0b746877948c873337cb9f1aad039b44c870000000000000000056a0332383627c5ce0d0000000017a9145f7612c27504d402696327c1089b036f46ebe4dd870000000
Response
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>TypeError: Cannot read property 'toString' of undefined
<br> at Array.str (/home/ubuntu/swap-node/node_modules/bitcoind-rpc/lib/index.js:260:18)
<br> at RpcClient.<anonymous> (/home/ubuntu/swap-node/node_modules/bitcoind-rpc/lib/index.js:236:35)
<br> at Bitcoin.sendTransaction (/home/ubuntu/swap-node/node_modules/bitcore-node/lib/services/bitcoind.js:1804:15)
<br> at Node.self.(anonymous function) [as sendTransaction] (/home/ubuntu/swap-node/node_modules/bitcore-node/lib/node.js:223:27)
<br> at TxController.send (/home/ubuntu/swap-node/node_modules/insight-api/lib/transactions.js:303:13)
<br> at Layer.handle [as handle_request] (/home/ubuntu/swap-node/node_modules/express/lib/router/layer.js:95:5)
<br> at next (/home/ubuntu/swap-node/node_modules/express/lib/router/route.js:137:13)
<br> at Route.dispatch (/home/ubuntu/swap-node/node_modules/express/lib/router/route.js:112:3)
<br> at Layer.handle [as handle_request] (/home/ubuntu/swap-node/node_modules/express/lib/router/layer.js:95:5)
<br> at /home/ubuntu/swap-node/node_modules/express/lib/router/index.js:281:22
</pre>
</body>
</html>