useProgramAccounts
Get all the accounts owned by a program using the Solana RPC method of
getProgramAccounts
Type Parameters
| Type Parameter | Default type |
|---|---|
TConfig extends { encoding?: "base64" | "base64+zstd" | "jsonParsed"; } | { encoding?: "base64" | "base64+zstd" | "jsonParsed"; } |
Parameters
| Parameter | Type |
|---|---|
__namedParameters | UseProgramAccountsInput<TConfig> |
Returns
| {
accounts: { [K in string | number | symbol]: UseProgramAccountsResponse<TConfig>[K] };
}
| {
accounts: { [K in string | number | symbol]: UseProgramAccountsResponse<TConfig>[K] };
}
| {
accounts: { [K in string | number | symbol]: UseProgramAccountsResponse<TConfig>[K] };
}
| {
accounts: { [K in string | number | symbol]: UseProgramAccountsResponse<TConfig>[K] };
}
| {
accounts: { [K in string | number | symbol]: UseProgramAccountsResponse<TConfig>[K] };
}