POST
/
cURL
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getCompressedBalanceByOwner",
  "params": {
    "owner": "11111113R2cuenjG5nFubqX9Wzuukdin2YfGQVzu5"
  }
}'
{
  "context": {
    "slot": 100
  },
  "value": 100
}

Authorizations

api-key
string
query
required

您的 Helius API 密钥。您可以在仪表板中免费获取一个。

Body

application/json

Response

200
application/json

成功从 Solana 区块链中获取所有者的压缩余额

The response is of type object.