Last updated on January 1, 1970

2 min read

Method avax.getUTXOs undefined ()
connect with JSON-RPC protocol

avax.getUTXOs

info-circle-fill

Method not allowed

info-circle-fill

Gets the UTXOs that reference a given address.

Parameters

addresses - list

is a list of UTXOs such that each UTXO references at least one address in addresses.

limit - int

Optional.

startIndex - map

Optional.

When using pagination (ie 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.

When using pagination, consistency is not guaranteed across multiple calls. That is, the UTXO set of the addresses may have changed between calls.

Map format: {address: string; uxto: string}

sourceChain - string

source Chain

encoding - string

Optional.

encoding sets the format for the returned UTXOs. Can be either "cb58" or "hex". Defaults to "cb58".

Request

curl --location --request POST 'https://avax.getblock.io/mainnet/ext/bc/C/rpc' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "avax.getUTXOs",
"params": [null, null, null, null, null],
"id": "getblock.io"}'

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}
banner icon

Start Building with GetBlock RPCs for Free