Function useParsedAccounts
- useParsedAccounts<T>(keys: (undefined | null | PublicKey)[], parser: ProgramAccountParser<T>, options?: Omit<UseQueryOptions<undefined | null | ProgramAccount<T>, unknown, undefined | null | ProgramAccount<T>, QueryKey>, "queryKey" | "queryFn">): ParsedAccountQueryResult<T>[]
-
Parameters
-
keys: (undefined | null | PublicKey)[]
-
-
options: Omit<UseQueryOptions<undefined | null | ProgramAccount<T>, unknown, undefined | null | ProgramAccount<T>, QueryKey>, "queryKey" | "queryFn"> = {}
Parses accounts with the given parser.
NOTE: the reference to the accounts array is not memoized.
Returns