Metodo RPC getLargestAccounts

Restituisce i 20 account più grandi, per saldo in lamport (i risultati possono essere memorizzati nella cache fino a due ore)

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getLargestAccounts",
> "params": [
> {
> "commitment": "finalized"
> }
> ]
> }
> '

params

objectoptional

Oggetto di configurazione contenente i seguenti campi:

result

Response
{
"jsonrpc": "2.0",
"result": {
"context": { "slot": 54 },
"value": [
{
"address": "99P8ZgtJYe1buSK8JXkvpLh8xPsCFuLYhz9hQFNw93WJ",
"lamports": 999974
},
{
"address": "uPwWLo16MVehpyWqsLkK3Ka8nLowWvAHbBChqv2FZeL",
"lamports": 42
}
]
},
"id": 1
}
array

Il risultato sarà un oggetto JSON RpcResponse con value uguale a un array di oggetti contenenti:

Is this page helpful?