walletProviders array through LayerswapProvider. Each provider implements a chain-family connection, balance, signing, and transaction contract.
Choose an approach
Native wallet packages
Install Layerswap’s packages for the chain families you support.
Custom wallet management
Adapt a third-party wallet system to the provider contract.
Provider reference
Package, factory, and credential setup by chain family.
Load settings before deriving chains
useChainConfigs needs loaded Layerswap settings. Put the hook in a child rendered only after the load guard, which also preserves React’s hook ordering: