avax.getUTXOs
Last updated
Was this helpful?
Last updated
Was this helpful?
Gets the UTXOs that reference a given address.
This method will use 10
.
addresses
- []string - A list of addresses.
limit
- int - (optional) The limit of UTXOs to return. If limit is omitted or greater than 1024, it is set to 1024.
startIndex
- object - (optional) If startIndex is omitted, will fetch all UTXOs up to limit. When using pagination (i.e when startIndex is provided), UTXOs are not guaranteed to be unique across multiple calls. That is, a UTXO may appear in the result of the first call, and then again in the second call.
address
- string
utxo - string
sourceChain
- string - The ID or alias of the chain the asset is being imported from.
encoding
- string - (optional) Sets the format for the returned UTXOs. Can only be hex when a value is provided.
numFetched
- int - (optional) Number of UTXOs fetched.
utxos
- []string - a list of UTXOs such that each UTXO references at least one address in addresses.
endIndex
- object - Denotes the last UTXO returned. To get the next set of UTXOs, use the value of endIndex as startIndex in the next call.
address
- string
utxo
- string