getAccountInfo RPCメソッド
提供されたPubkeyに関連するアカウントの全情報を返します
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getAccountInfo",> "params": [> "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",> {> "commitment": "finalized",> "encoding": "base58"> }> ]> }> '
params
stringrequired
クエリするアカウントのpubkey(base-58エンコード文字列として)。
objectoptional
設定オブジェクト。
result
Response
{"jsonrpc": "2.0","result": {"context": { "apiVersion": "2.0.15", "slot": 341197053 },"value": {"data": ["", "base58"],"executable": false,"lamports": 88849814690250,"owner": "11111111111111111111111111111111","rentEpoch": 18446744073709551615,"space": 0}},"id": 1}
object | null
要求されたアカウントが存在しない場合、結果は null
になります。それ以外の場合は、以下を含むオブジェクトが返されます:
Is this page helpful?