question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BTC does not transfer

See original GitHub issue

my 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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Bensigocommented, Jan 2, 2018

I probably didn’t do that. How do I do that?

0reactions
dcousenscommented, Jan 2, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found