Skip to main content

avax.getUTXOs RPC Method

Get the UTXOs that reference a given address.

Updated on
Dec 4, 2024

avax.getUTXOs RPC Method

Parameters

addresses
array
REQUIRED
An array of addresses
limit
integer
The limit ofUTXOs to return. If 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 a 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
The transaction is (or will be) accepted by every node

Returns

result
object
The result of the UTXO query
numFetched
string
The number of UTXOs fetched
utxos
array
The list of UTXOs returned by the query
endIndex
object
The end index for the UTXO fetching process
address
string
The address for the end index
utxo
string
The UTXO ID for the end index
encoding
string
The encoding format used for the UTXOs
Request
1
curl --location --request POST https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/avax \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc":"2.0",
5
"id" :1,
6
"method" :"avax.getUTXOs",
7
"params" :{
8
"addresses":["C-flare1ljm5j7ku39shkern8peyg223axa9m0z30cl63c"],
9
"sourceChain": "X",
10
"limit": 5,
11
"encoding": "hex"
12
}
13
}'
14
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free