Can I use wallet balance in satoshis as input for transaction builder ( bitcoinjs-lib )?

1

Can I use wallet balance in satoshis as input for transaction builder using bitcoinjs-lib ?

If yes, how?

Oysho Boy

Posted 2018-08-30T10:50:53.960

Reputation: 13

Question was closed 2018-09-12T15:45:45.603

Answers

0

No. Bitcoins are not kept in addresses, but Unspent Outputs ("UTXO"). You must specify TXIDs and outputs indices ("vout"). Specifying amount to make a transaction is not needed, but BitcoinJS may ask you for it to calculate the change output and the fee.

MCCCS

Posted 2018-08-30T10:50:53.960

Reputation: 5 827