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 chainsgetChain(chain_id: number)
: Get chain information by IDgetProvider(chain_id: number)
: Get ethers provider for a chaingetBlock(chain_id: number, block_number: number)
: Get block information