AVAX
POST
GET
Last updated on January 1, 1970
2 min read
Method avax.getUTXOs undefined ()
connect with WS protocol
avax.getUTXOs
Method not allowed
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
wscat -c wss://avax.getblock.io/YOUR-API-KEY/mainnet/
# wait for connection and send the request body
{"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"
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }