Skip to main content

avax.getUTXOs RPC Method

Get the UTXOs that reference a given address.

Updated on
Nov 2, 2023

avax.getUTXOs RPC Method

Parameters

addresses
array of strings
REQUIRED
A list 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

numFetched
integer
Number ofUTXOs fetched.
endIndex
object
Denotes the lastUTXO returned. To get the next set of UTXOs, use the value of endIndex as startIndex in the next call.
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/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-avax1uqsts4n6j0fwmdhu4p8acmjksemtqu7vedhdks"],
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