Skip to main content
This page applies only to the self-bundled @layerswap/widget integration. The recommended loader packages build providers internally; see Wallets.
The self-bundled Widget receives a 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:
Keep the provider array stable when its inputs have not changed. Provider order does not change route availability; it changes which wallet families the UI can connect.