BTC does not transfer
See original GitHub issuemy code run smooth without any error but the bitcoin does not transfer to toAddress . code
sendTestnetBTC (paperWallet, toAddress, amount, txID) {
const address = bitcoin.ECPair.fromWIF(paperWallet.privateKey, bitcoin.networks.testnet)
const txb = new bitcoin.TransactionBuilder(bitcoin.networks.testnet)
txb.addInput(txID , 0) // previous transactionId from the address at index 0
txb.addOutput(toAddress, amount)
txb.sign(0, address)
txb.build().toHex()
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Sent funds not showing up at recipient address
If the recipient states that they did not receive the bitcoins, please ask them to confirm the receiving address. If you have sent...
Read more >Top Reasons Why Your Bitcoin Transaction is Still Unconfirmed
Incorrect transaction details : If you have sent the information to the wrong address or wallet, the network may be unable to confirm...
Read more >8 Reasons Why Your Bitcoin Transaction is Delayed
Before they're processed, transactions will not be recorded on the blockchain as they can still be rejected by the Mempool if the fees...
Read more >Some things you need to know - Bitcoin.org
A Bitcoin transaction cannot be reversed, it can only be refunded by the person receiving the funds. This means you should take care...
Read more >How Long Does it Take to Transfer Bitcoin Between Wallets?
No matter the use case, transferring is an important feature of using your Bitcoin wallet. In this article, we will distill how long...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I probably didn’t do that. How do I do that?
@Bensigo please read https://github.com/bitcoinjs/bitcoinjs-lib/issues/839