getLargestAccounts RPCメソッド
lamportバランスによる上位20のアカウントを返します(結果は最大2時間キャッシュされる場合があります)
$ 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
以下のフィールドを含む設定オブジェクト:
result
Response
{"jsonrpc": "2.0","result": {"context": { "slot": 54 },"value": [{"address": "99P8ZgtJYe1buSK8JXkvpLh8xPsCFuLYhz9hQFNw93WJ","lamports": 999974},{"address": "uPwWLo16MVehpyWqsLkK3Ka8nLowWvAHbBChqv2FZeL","lamports": 42}]},"id": 1}
array
結果は、value
が以下を含むオブジェクトの配列に等しいRpcResponse
JSONオブジェクトになります:
Is this page helpful?