Title: Generate and push a raw Bitcoin transaction Post by: LibertyFund on September 02, 2016, 04:32:12 PM When I try to push a raw Bitcoin transaction via the blockchain.info API I get the following error message:
Quote Script resulted in a non-true stack: [] Transaction should send 0.001 Bitcoins with a 0.0005 fee from 1CBzN3YW4h7XRwb5sjpmBSEPmVPa9wHPgD to the 1KAsr5RcApYG1Rk9uLwsHTXvwsyD1FVyFy address. Unspent output(s) of the 1CBzN3YW4h7XRwb5sjpmBSEPmVPa9wHPgD: https://blockchain.info/unspent?active=1CBzN3YW4h7XRwb5sjpmBSEPmVPa9wHPgD Unsigned transaction: Code: 01000000 Signed transaction: Code: 01000000 Does anyone has an idea why the transaction is incorrect? Title: Re: Generate and push a raw Bitcoin transaction Post by: Coding Enthusiast on September 02, 2016, 04:48:00 PM remove the new lines
Code: 010000000188802ffe48d0f9d2867495e933b1477094ce017f5d6e4204e40f1040ab805c16000000008b483045022100FA512B36C030BAD0868E2679E1B29E32CCE0099DA086F8FD82010DFFF61B79BA02206C00220683E448C29CCE73FCD7F3CD74E3F76582C07F2F0B436EF247C2D2523F014104a75429241bc8c83e0a1c615155e9b984880f16d39b09b28eef464139fb84d8ff507a5d482e8f41cdb5a762436515d310f16b208bdce4ddfb8a30a7236d36a2daffffffff01a0860100000000001976a914c75073b564d6ebce3d5d12d59ab20d44bd10f69f88ac00000000 and try again. Title: Re: Generate and push a raw Bitcoin transaction Post by: LibertyFund on September 02, 2016, 05:16:24 PM remove the new lines Code: 010000000188802ffe48d0f9d2867495e933b1477094ce017f5d6e4204e40f1040ab805c16000000008b483045022100FA512B36C030BAD0868E2679E1B29E32CCE0099DA086F8FD82010DFFF61B79BA02206C00220683E448C29CCE73FCD7F3CD74E3F76582C07F2F0B436EF247C2D2523F014104a75429241bc8c83e0a1c615155e9b984880f16d39b09b28eef464139fb84d8ff507a5d482e8f41cdb5a762436515d310f16b208bdce4ddfb8a30a7236d36a2daffffffff01a0860100000000001976a914c75073b564d6ebce3d5d12d59ab20d44bd10f69f88ac00000000 and try again. I tried submitting the signed transaction without the new lines via the https://blockchain.info/pushtx but this doesn't solve the issue. I am still getting the Quote Script resulted in a non-true stack: [] error.I have still no idea what is wrong here. I was able to successfully decode the transaction using the https://blockchain.info/decode-tx: Code: { Title: Re: Generate and push a raw Bitcoin transaction Post by: LibertyFund on September 02, 2016, 06:18:52 PM I was able to push the transaction after signing it via the https://coinb.in/#sign.
It looks like I am generating incorrect signatures. Title: Re: Generate and push a raw Bitcoin transaction Post by: LibertyFund on September 04, 2016, 04:29:58 PM I used the following code to produce a correct signature:
Code:
Title: Re: Generate and push a raw Bitcoin transaction Post by: amaclin on September 05, 2016, 11:10:28 AM use testnet please for debuging your code
|