Kit
Type aliases

GetTokenAccountsByOwnerApi

GetTokenAccountsByOwnerApi = object

Methods

getTokenAccountsByOwner()

Call Signature

getTokenAccountsByOwner(owner, filter, config): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase64EncodedData>>

Returns all SPL Token accounts owned by the supplied address.

The accounts' data will be returned in the response as a tuple whose first element is a base64-encoded string.

Parameters
ParameterTypeDescription
ownerAddress-
filterAccountsFilterLimits the results to either token accounts associated with a particular mint, or token accounts owned by a certain token program.
configReadonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }> & Readonly<{ dataSlice?: DataSlice; }> & Readonly<{ encoding: "base64"; }>-
Returns

SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase64EncodedData>>

See

https://solana.com/docs/rpc/http/gettokenaccountsbyowner

Call Signature

getTokenAccountsByOwner(owner, filter, config): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase64EncodedZStdCompressedData>>

Returns all SPL Token accounts owned by the supplied address.

The accounts' data will first be compressed using ZStandard and the result will be returned in the response as a tuple whose first element is a base64-encoded string.

Parameters
ParameterTypeDescription
ownerAddress-
filterAccountsFilterLimits the results to either token accounts associated with a particular mint, or token accounts owned by a certain token program.
configReadonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }> & Readonly<{ dataSlice?: DataSlice; }> & Readonly<{ encoding: "base64+zstd"; }>-
Returns

SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase64EncodedZStdCompressedData>>

See

https://solana.com/docs/rpc/http/gettokenaccountsbyowner

Call Signature

getTokenAccountsByOwner(owner, filter, config): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<TokenAccountInfoWithJsonData>>

Returns all SPL Token accounts owned by the supplied address.

The server will attempt to process the accounts' data using a parser specific to each account's owning token program.

Parameters
ParameterTypeDescription
ownerAddress-
filterAccountsFilterLimits the results to either token accounts associated with a particular mint, or token accounts owned by a certain token program.
configReadonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }> & Readonly<{ encoding: "jsonParsed"; }>-
Returns

SolanaRpcResponse<GetTokenAccountsByOwnerResponse<TokenAccountInfoWithJsonData>>

See

https://solana.com/docs/rpc/http/gettokenaccountsbyowner

Call Signature

getTokenAccountsByOwner(owner, filter, config): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase58EncodedData>>

Returns all SPL Token accounts owned by the supplied address.

The accounts' data will be returned in the response as a tuple whose first element is a base58-encoded string. If any account contains more than 129 bytes of data, this method will raise an error.

Parameters
ParameterTypeDescription
ownerAddress-
filterAccountsFilterLimits the results to either token accounts associated with a particular mint, or token accounts owned by a certain token program.
configReadonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }> & Readonly<{ dataSlice?: DataSlice; }> & Readonly<{ encoding: "base58"; }>-
Returns

SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase58EncodedData>>

See

https://solana.com/docs/rpc/http/gettokenaccountsbyowner

Call Signature

getTokenAccountsByOwner(owner, filter, config?): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase58Bytes>>

Returns all SPL Token accounts owned by the supplied address.

The accounts' data will be returned in the response as a base58-encoded string. If any account contains more than 129 bytes of data, this method will raise an error.

Parameters
ParameterTypeDescription
ownerAddress-
filterAccountsFilterLimits the results to either token accounts associated with a particular mint, or token accounts owned by a certain token program.
config?Readonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }> & Readonly<{ dataSlice?: DataSlice; }>-
Returns

SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase58Bytes>>

See

https://solana.com/docs/rpc/http/gettokenaccountsbyowner

On this page