Skip to content

Not able to send raw transaction #581

Description

@thackerronak

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 &#39;toString&#39; of undefined
            <br> &nbsp; &nbsp;at Array.str (/home/ubuntu/swap-node/node_modules/bitcoind-rpc/lib/index.js:260:18)
            <br> &nbsp; &nbsp;at RpcClient.&lt;anonymous&gt; (/home/ubuntu/swap-node/node_modules/bitcoind-rpc/lib/index.js:236:35)
            <br> &nbsp; &nbsp;at Bitcoin.sendTransaction (/home/ubuntu/swap-node/node_modules/bitcore-node/lib/services/bitcoind.js:1804:15)
            <br> &nbsp; &nbsp;at Node.self.(anonymous function) [as sendTransaction] (/home/ubuntu/swap-node/node_modules/bitcore-node/lib/node.js:223:27)
            <br> &nbsp; &nbsp;at TxController.send (/home/ubuntu/swap-node/node_modules/insight-api/lib/transactions.js:303:13)
            <br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/home/ubuntu/swap-node/node_modules/express/lib/router/layer.js:95:5)
            <br> &nbsp; &nbsp;at next (/home/ubuntu/swap-node/node_modules/express/lib/router/route.js:137:13)
            <br> &nbsp; &nbsp;at Route.dispatch (/home/ubuntu/swap-node/node_modules/express/lib/router/route.js:112:3)
            <br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/home/ubuntu/swap-node/node_modules/express/lib/router/layer.js:95:5)
            <br> &nbsp; &nbsp;at /home/ubuntu/swap-node/node_modules/express/lib/router/index.js:281:22
        </pre>
    </body>
</html>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions