Hooks
useIndexerGatewayClient
Hook for accessing the Sequence Indexer Gateway client for multi-chain queries
Import
Usage
Return Type: SequenceIndexerGateway
The hook returns a SequenceIndexerGateway
instance configured with your project’s settings. This client provides methods for querying token data across multiple chains in a single request.
Available Methods
The returned client includes the following methods:
Parameters
The hook doesn’t accept any parameters, but uses configuration from the useConfig
hook:
The configuration determines:
- The gateway URL for API requests
- Your project’s access key for authentication
- Environment-specific settings
The client is memoized based on the projectAccessKey
to prevent unnecessary re-instantiation.
Was this page helpful?