FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
⚡ We welcome businesses to test our enterprise-grade service
Method: POST query(view_account_basic)
返回基本帐户信息。
request_type
- 细绳
请求类型
finality
- 细绳
您应该选择该块或block_id。
可以是“乐观的”或“最终”
block_id
- int或字符串
您应该选择该问题或最终性。
block_id param可以将块号或块哈希作为参数。
account_id
- 细绳
帐户ID
curl --location --request POST 'https://near.getblock.io/mainnet' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "query", "params": {"request_type": "view_account", "finality": "final", "account_id": "staked.poolv1.near"}, "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": { "amount": "33945779367939674663889680026", "block_hash": "4BsKpcha4YcZCjy7wDs9DPWZ4q9GNe6mKF5KfCRhGfJj", "block_height": 61075007, "code_hash": "J1arLz48fgXcGyCPVckFwLnewNH6j1uw79thsvwqGYTY", "locked": "43032006277761885602868523789140", "storage_paid_at": 0, "storage_usage": 710635 } }