Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.09 KB

transaction.md

File metadata and controls

61 lines (37 loc) · 1.09 KB

Transaction

  • Get address UTXOS
const bitcoin = new Bitcoin();

const results = await bitcoin.getAddressUtxos(ADDRESS: string, NETWORK: Network);

console.log(results);
  • Get balance
const bitcoin = new Bitcoin();

const results = await bitcoin.getBalance(ADDRESS : string, NETWORK : Network);

console.log(results);
  • Get estimated fees
const bitcoin = new Bitcoin();

const results = await bitcoin.getEstimatedFees(NETWORK : Network);

console.log(results);
  • Get address confirmed transactions
const bitcoin = new Bitcoin();

const results = await bitcoin.getAddressConfirmedTransactions(ADDRESS : string, NETWORK : Network);

console.log(results);
  • Get address unconfirmed transactions
const bitcoin = new Bitcoin();

const results = await bitcoin.getAddressUnconfirmedTransactions(ADDRESS : string, NETWORK : Network);

console.log(results);
  • Get transaction serialized as hex
const bitcoin = new Bitcoin();

const results = await bitcoin.getHexTransaction(TXID : string, NETWORK : Network);

console.log(results);