How to send Bitcoin from one addresss to another using nodejs

1

which api i can use to tranfer BTC from one address to another. I have knowledge about bitcoin-transaction api but it does not allow to setup fees. We have try this api but it cost too much high for micro transactions.

If there is any option to setup fees i would prefer it because it not complex compared to others.

Rushabh Madhu

Posted 2018-06-29T12:23:45.850

Reputation: 43

Bitcoinjs-lib allows fairly granular control over fees and transaction parts in general.Raghav Sood 2018-06-29T16:32:55.123

Answers

0

Learn bitcore-lib npm package:

Bitcore library provides a very simple API for creating transactions. Let's take a very simple transactions:

var transaction = new Transaction()
    .from(utxos)          // Feed information about what unspent outputs one can use
    .to(address, amount)  // Add an output with the given amount of satoshis
    .change(address)      // Sets up a change address where the rest of the funds will go
    .sign(privkeySet)     // Signs all the inputs it can

Ishwar Chandra

Posted 2018-06-29T12:23:45.850

Reputation: 170

Can you please share the URL for the sameRushabh Madhu 2018-06-30T14:12:33.780

this is official link from where you can get more information http://bitcore.io/guide/

Ishwar Chandra 2018-06-30T16:21:44.150