How BitcoinJS sync bitcoin blockchain/transaction data?

How BitcoinJS sync bitcoin blockchain/transaction data?

I see the reference code in BitcoinJS website about 'Creating a Transaction':

var tx = new bitcoin.TransactionBuilder()

// Add the input (who is paying):
// [previous transaction hash, index of the output to use]
var txId = 'aa94ab02c182214f090e99a0d57021caffd0f195a81c24602b1028b130b63e31'
tx.addInput(txId, 0)

My question is how it get the data about tx(like its inputs/outputs)? Does it link to some nodes or API like blockchain.info?

http://ift.tt/2AhtbGN

Comments

Popular posts from this blog

New z-enemy 1.26 Nvidia GPU Miner With Improved Performance

New coin daemon crashes ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8)

How do I calculate the witness commitment hash for a given block?