Fetch any account and decode it with a custom decoder function.
Account public key.
Custom decoder function (data: Uint8Array) => T.
Optionalopts: AccountFetchOptsRPC options.
Decoded result or null.
Fetch multiple accounts and decode them with a custom decoder (single RPC call).
Account public keys.
Custom decoder function.
Optionalopts: AccountFetchOptsRPC options.
Array of decoded results (null for non-existent).
Fetch and decode an Address Lookup Table.
Optionalopts: AccountFetchOptsFetch and decode a token mint. Auto-detects Token vs Token-2022 and includes extensions.
Optionalopts: AccountFetchOptsFetch and decode a durable nonce account.
Optionalopts: AccountFetchOptsFetch and decode a stake account.
Optionalopts: AccountFetchOptsFetch and decode a single SPL Token account. Auto-detects Token vs Token-2022 and includes extensions.
Optionalopts: AccountFetchOptsFetch all token accounts owned by a wallet, optionally filtered by mint.
Optionalmint: undefinedOptionalopts: {
High-level accounts client with decoded fetch methods.
Exposed as
client.accountson SynapseClient. Each method fetches raw data, base64-decodes it, and runs the appropriate native decoder — returning a fully typed object.Since
1.1.0