Balances utxos

platform.getUTXOs

GetUTXOs returns the UTXOs controlled by the given addresses

POST
/ext/bc/P#platform.getUTXOs

JSON-RPC request

jsonrpcstring
methodstring
params

Method parameters

idinteger

Response Body

application/json

application/json

curl -X POST "https://api.avax.network/ext/bc/P#platform.getUTXOs" \  -H "Content-Type: application/json" \  -d '{    "jsonrpc": "2.0",    "method": "platform.getUTXOs",    "params": {},    "id": 1  }'
{
  "jsonrpc": "2.0",
  "result": {
    "numFetched": 0,
    "utxos": [
      "string"
    ],
    "endIndex": {},
    "encoding": "string"
  },
  "id": 1
}
{
  "jsonrpc": "2.0",
  "error": {
    "code": 0,
    "message": "string",
    "data": {}
  },
  "id": 1
}

Is this guide helpful?