Shred Delivery and Sender are now live! Get earliest access to raw Solana data and optimized transaction sending. Learn about Shred Delivery | Learn about Sender
简体中文
返回 SPL Token 账户的代币余额。
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": "1", "method": "getTokenAccountBalance", "params": [ "3emsAVdmGKERbHjmGfQ6oZ1e35dkf5iYcS6U4CPKFVaa" ] }'
{ "jsonrpc": "2.0", "id": "1", "result": { "context": { "slot": 1114 }, "value": { "amount": "9864", "decimals": 2, "uiAmount": 98.64, "uiAmountString": "98.64" } } }
您的Helius API密钥。您可以在仪表板中免费获取一个。
JSON-RPC 协议版本。
2.0
"2.0"
请求的唯一标识符。
"1"
要调用的 RPC 方法名称。
getTokenAccountBalance
"getTokenAccountBalance"
查询代币账户余额的参数。
Show child attributes
成功检索到代币账户余额。
JSON-RPC协议版本。
与请求匹配的标识符。
上下文和代币账户余额详情。
此页面对您有帮助吗?