Chain Hooks
Hooks for interacting with blockchain networks and chain data.
Chain Hooks
BuilderKit provides hooks for interacting with blockchain networks and managing chain-related data.
useChains
The useChains hook provides functions for accessing and managing chain information.
Available Functions
- getChains(): Get list of all configured chains
- getChain(chain_id: number): Get chain information by ID
- getProvider(chain_id: number): Get ethers provider for a chain
- getBlock(chain_id: number, block_number: number): Get block information
Integration Example
Is this guide helpful?