Skip to main content

avm.getUtxOs RPC Method

Get the UTXOs that reference a given address.

Updated on
Nov 02, 2023

Parameters

addresses
array of strings
REQUIRED

A list of UTXOs such that each UTXO references at least one address in the list of addresses.

limit
integer

The limit of UTXOs to return. If the limit is omitted or greater than 1024, it is set to 1024.

startIndex
object

If startIndex is omitted, it will fetch all UTXOs up to the limit. When using pagination (i.e when startIndex is provided), UTXOs are not guaranteed to be unique across multiple calls. A UTXO may appear in the result of the first call, and then again in the second call.

address
string

The address at the start index

utxo
string

The UTXO at the start index

sourceChain
string

The ID or alias of the chain the asset is being imported from.

encoding
string

The format for the returned UTXOs. Can only be hex when a value is provided. Defaults to hex.

Returns

numFetched
string

Number of UTXOs fetched.

utxos
array of strings

A list of UTXOs

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

The address at the start index

utxo
string

The UTXO at the start index

encoding
string

The encoding format used for the returned UTXOs.

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free