跳转到主要内容
POST
Run `getBalance`
curl --request POST \
  --url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBalance",
  "params": [
    "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
  ]
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 372910193
    },
    "value": 0
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt

Use this file to discover all available pages before exploring further.

授权

api_key
string
query
必填

请求体

application/json
jsonrpc
enum<string>
默认值:2.0
必填

The JSON-RPC protocol version.

可用选项:
2.0
id
string
默认值:1
必填

A unique identifier for the request.

示例:

"1"

method
enum<string>
必填
可用选项:
getBalance
params
(string | object)[]
必填

Parameters for the request.

The Pubkey of the account to query (base-58 encoded string).

示例:

"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"

响应

Successfully retrieved account balance.

jsonrpc
enum<string>
可用选项:
2.0
id
string
result
object