New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
返回与提供的公钥账户相关的所有信息。
cURL
curl --request POST \ --url 'https://mainnet.helius-rpc.com/?api-key=' \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": 1, "method": "getAccountInfo", "params": [ "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri", { "encoding": "base58" } ] } '
{ "jsonrpc": "2.0", "result": { "context": { "apiVersion": "2.0.15", "slot": 341197053 }, "value": { "lamports": 88849814690250, "owner": "11111111111111111111111111111111", "data": [ "", "base58" ], "executable": false, "rentEpoch": 18446744073709552000, "space": 0 } }, "id": 1 }
getAccountInfo
changedSinceSlot
status: "unchanged"
您的Helius API密钥。您可以在仪表板中免费获取一个。
JSON-RPC协议版本。
2.0
请求的唯一标识符。
"1"
要调用的RPC方法名称。
要查询账户的公钥,作为base-58编码的字符串。
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
成功检索到账户信息。
"2.0"
显示 子属性
与请求ID匹配的唯一标识符。
1
被调用的方法。
"getAccountInfo"
请求的参数。
此页面对您有帮助吗?