The public mainnet, devnet, and testnet endpoints turn this method off. They
answer every request with HTTP
429 “Too many requests for a specific RPC
call”, which waiting does not clear. Call it on an RPC provider that serves
it, or on a local network at http://localhost:8899, as the examples on this
page do: solana-test-validator, or Surfpool started with --offline (a
Surfpool that forks a public cluster forwards this method there and gets the
same 429). Replace the example addresses with accounts on your network.Parameters
Pubkey of account delegate to query, as base-58 encoded string
A JSON object with one of the following fields:
Configuration object containing the following fields:
Show propertiesHide properties
Show propertiesHide properties
Values:
processed, confirmed, finalizedSolana RPC uses the following commitment levels:| Value | Description |
|---|---|
processed | Return data from the highest slot this node has processed. This is the newest view, but the block can still be skipped. |
confirmed | Return data from the same slot as finalized. Kept for compatibility and planned for removal in a later release. |
finalized | Return data from the highest slot with a finalization certificate, from votes by 80% of stake in one round or 60% of stake in each of two rounds. This is the strongest commitment level. |
The minimum slot that the request can be evaluated at
Example
{ "minContextSlot": 341197000 }
Request a slice of the account’s data.
| Field | Type | Description |
|---|---|---|
offset | usize | Byte offset from which to start reading account data. |
length | usize | Number of bytes to return. |
Example
{ "offset": 0, "length": 32 }
Data slicing is only available for
base58, base64, base64+zstd, and
binary encodings.Use
encoding: "jsonParsed" if you want the parsed token account structure
shown in the response example below.Values:
If you use
The nested
base58, base64, base64+zstd, binary, jsonParsedEncoding format for account data.| Encoding | Data format | Notes |
|---|---|---|
base64 | [data, "base64"] | Recommended |
base58 | [data, "base58"] | Slow. The account’s data field must be 128 bytes or fewer |
base64+zstd | [data, "base64+zstd"] | Zstandard compressed |
jsonParsed | {program, parsed, space} | Falls back to [data, "base64"] if no parser found |
binary | string | Deprecated. Legacy encoding retained for backwards compatibility. Same base58 encoding as base58 with the same 128-byte data field limit, but returns data as a plain string instead of an array. Use base64 instead |
jsonParsed, this method returns the token-account wrapper
{program, parsed, space}. The program field identifies the token parser that
produced parsed.program value | Parsed account type |
|---|---|
spl-token | SPL Token accounts |
spl-token-2022 | SPL Token 2022 accounts |
parsed payload on this page uses the SPL Token account form
documented below.The nested account field uses the shared
Account Data wrapper, and
tokenAmount uses the same amount fields documented in
Token Balances.Result
RpcResponse object containing:
Show propertiesHide properties
Show propertiesHide properties
Slot and API version the node used to answer this request.
| Field | Type | Description |
|---|---|---|
slot | u64 | Slot at which the node evaluated this request. |
apiVersion | string | RPC API version reported by the node. This field may be omitted by older nodes. |
Array of keyed-account objects with the following fields:
When
| Field | Type | Description |
|---|---|---|
pubkey | string | Account pubkey, as a base-58 encoded string. |
account | object | Account data object. Uses the shared Account Data structure. |
| Field | Type | Description |
|---|---|---|
data | string | [string, encoding] | object | Token account data. Binary forms depend on the encoding parameter. When encoding is jsonParsed, this field is {program, parsed, space}; if no parser is available, the RPC node falls back to [data, "base64"]. |
executable | bool | Whether the account contains a program and is therefore read-only. |
lamports | u64 | Lamports assigned to the account. |
owner | string | Program owner pubkey, as a base-58 encoded string. |
rentEpoch | u64 | Next epoch at which the account owes rent. |
space | u64 | null | Account data size in bytes. Current Solana RPC responses populate this field for encoded account responses. |
account.data is returned as an object, it contains:| Field | Type | Description |
|---|---|---|
program | string | Name of the parser that produced the decoded token-account data. |
parsed | object | Parsed SPL Token account payload. For this method, this field uses the token-account form documented below. |
space | u64 | Account data size in bytes. |
parsed fields| Field | Type | Description |
|---|---|---|
type | string | Always account for this method. |
info | object | Parsed SPL Token account fields. |
parsed.info fields| Field | Type | Description |
|---|---|---|
mint | string | Token mint pubkey, as a base-58 encoded string. |
owner | string | Token-account owner pubkey, as a base-58 encoded string. |
tokenAmount | object | Token amount object with raw and decimal-scaled representations. |
delegate | string | null | Delegate pubkey, when a delegate is set. |
state | string | Token-account state. The value is uninitialized, initialized, or frozen. |
isNative | bool | Whether this account wraps the native SOL mint. |
rentExemptReserve | object | null | Rent-exempt reserve amount for wrapped SOL accounts, when present. Uses the same token-amount schema as tokenAmount. |
delegatedAmount | object | null | Amount delegated to delegate, when present. Uses the same token-amount schema as tokenAmount. |
closeAuthority | string | null | Close-authority pubkey, when present. |
extensions | array | Parsed SPL Token 2022 extension entries. Each element has an extension discriminator and an extension-specific state payload. |
tokenAmount fieldsThis nested amount object uses the same numeric fields documented in
Token Balances.| Field | Type | Description |
|---|---|---|
uiAmount | number | null | Decimal-scaled amount as a floating-point number. Deprecated in favor of uiAmountString. |
decimals | u8 | Number of decimal places configured on the mint. |
amount | string | Raw token amount, as a base-10 integer string. |
uiAmountString | string | Decimal-scaled amount as a string. |