Hooks
useIndexerClient
Hook for managing a Sequence Indexer client for a specific chain
Import
Usage
Return Type: SequenceIndexer
Returns a SequenceIndexer
instance configured for the specified chain ID.
Parameters
chainId
ChainId
The chain ID to create an indexer client for. Must be a supported chain ID from @0xsequence/network
.
Related Hooks
For applications that need to work with multiple chains simultaneously, consider using useIndexerClients
. It accepts an array of chain IDs and returns a Map of indexer clients, enabling parallel operations across different networks.
Usage with useIndexerClients
Was this page helpful?