FetchTokenStrategy: "getTokenAccountsByOwner" | "getProgramAccounts"

The strategy to use when fetching token accounts.

  • getTokenAccountsByOwner is the default and uses the getTokenAccountsByOwner RPC call.
  • getProgramAccounts uses a getProgramAccounts RPC call to fetch the tokens. It is slightly faster but may be disabled on some RPC nodes.

Default Value

'getTokenAccountsByOwner'

Generated using TypeDoc