Get UTXOs (Unspent transaction outputs)

Get UTXOs from a wallet address.

sdk.transaction.getUTXOs(opts)

  • opts.address (string)(required) - transaction hash.

  • opts.protocol (string)(required) - blockchain protocol. Only BITCOIN, HATHOR and CARDANO.

const utxos = await sdk.transaction.getUTXOs({ address: 'WgzYfVxZiL7bCN37Wj8myVY9HKZ5GCACsh', protocol: 'HATHOR' })
// UTXOs [
//     {
//         "index": 0,
//         "value": 3986,
//         "txHash": "002bfddcbedab636844421fe0d098cf69accbe2d0c2473d43277483a3b0755df",
//         "token": "00"
//     }
// ]

Last updated