Get token account balance
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the token balance of an SPL Token account
Body
Returns the token balance of an SPL Token account
Object containing request fields.
jsonrpcstringrequiredJSON-RPC protocol version.
methodstringrequiredSolana JSON-RPC method name.
paramsArray<string | object>requiredOrdered positional parameters for the Solana JSON-RPC method:
- Token account public key whose token balance should be returned.
- Optional commitment configuration.
idintegerrequiredClient request identifier echoed by the server.
Response
Token account balance response
Bad Request. The Solana JSON-RPC request is malformed or contains invalid parameters.
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal Server Error. The gateway or Solana node failed while processing the request.