avm.getUTXOs
Gets the UTXOs that reference a given address. If sourceChain is specified, then it will retrieve the atomic UTXOs exported from that chain to the X Chain.
JSON-RPC request
jsonrpcstring
methodstring
params
idinteger
Response Body
application/json
application/json
curl -X POST "https://api.avax.network/ext/bc/X#avm.getUTXOs" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "avm.getUTXOs", "params": { "addresses": [ "X-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5", "X-avax1d09qn852zcy03sfc9hay2llmn9hsgnw4tp3dv6" ] }, "id": 1 }'{
"jsonrpc": "2.0",
"result": {
"numFetched": "5",
"utxos": [
"string"
],
"endIndex": {
"address": "string",
"utxo": "string"
},
"encoding": "hex"
},
"id": 1
}{
"jsonrpc": "2.0",
"error": {
"code": 0,
"message": "string",
"data": null
},
"id": 1
}Is this guide helpful?