Skip to main content

platform.getUtxOs RPC Method

Get the UTXOs that reference a given address.

Updated on
Nov 2, 2023

platform.getUtxOs RPC Method

Parameters

addresses
[]string
the addresses from which we want to retrieve the UTXOs.
limit
int
At most limit UTXOs are returned. If limit is omitted or greater than 1024, it is set to 1024.
startIndexAddressutxo
objectstringstring
startIndex -object- (optional) an object of an address and a utxo.Address -stringutxo -string
sourceChain
optional) the chain from which we want to fetch the UTXOs
.
encoding
string
Specifies the format for the returned UTXOs. Can only be hex when a value is provided.

Returns

numFetched
string
the number ofUTXOs fetched.
address
string
utxo
string
utxo
string
utxos
[]string
theUTXOs fetched.
address
string
utxo
string
utxo
string
endIndexaddressutxo
objectstringstring
endIndex - object - the last addressand utxo that was fetched. address -stringutxo -string
address
string
utxo
string
utxo
string
encoding
string
Specifies theformat for the returned UTXOs.
address
string
utxo
string
utxo
string
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/P \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc":"2.0",
5
"id" :1,
6
"method" :"platform.getUTXOs",
7
"params" :{
8
"addresses":["P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"],
9
"sourceChain": "X",
10
"limit": 5,
11
"encoding": "hex"
12
}
13
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free