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": "getCompressedBalance", "params": { "address": null, "hash": "11111111111111111111111111111111" } } '
{ "context": { "slot": 100 }, "value": 100 }
您的 Helius API 密钥。您可以在仪表板中免费获取一个。
JSON-RPC协议的版本。
2.0
用于标识请求的ID。
"1"
要调用的方法名称。
getCompressedBalance
请求压缩账户数据
显示 子属性
表示为 base58 字符串的 Solana 公钥。
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
表示为 base58 字符串的 32 字节哈希。
{ "address": null, "hash": "11111111111111111111111111111111"}
成功从Solana区块链检索压缩账户余额
100
此页面对您有帮助吗?