跳转到主要内容
POST
getTokenAccountBalance

授权

api_key
string
query
必填

请求体

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

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string
默认值:1
必填

A unique identifier for the request.

示例:

"1"

method
enum<string>
默认值:getTokenAccountBalance
必填

The name of the RPC method to invoke.

可用选项:
getTokenAccountBalance
示例:

"getTokenAccountBalance"

params
(string | object)[]
必填

Parameters for querying the token account balance.

Solana SPL token account address to query for balance information, as a base-58 encoded string.

示例:

"121k79rjdDy4QRuSykdG1Dw7pYCZSzKYrvs7RDKZTf1h"

响应

Successfully retrieved the token account balance.

jsonrpc
enum<string>

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string

Identifier matching the request.

示例:

"1"

result
object

Context and token account balance details.