Custom Chain Setup
Configure custom Avalanche L1 chains in your application.
Custom Chain Setup
Learn how to configure custom Avalanche L1 chains in your BuilderKit application.
Chain Definition
Define your custom L1 chain using viem
's defineChain
:
Provider Configuration
Add your custom L1 chain to the Web3Provider:
Required Properties
Property | Type | Description |
---|---|---|
id | number | Unique L1 chain identifier |
name | string | Human-readable chain name |
network | string | Network identifier |
nativeCurrency | object | Chain's native token details |
rpcUrls | object | RPC endpoint configuration |
blockExplorers | object | Block explorer URLs |
Optional Properties
Property | Type | Description |
---|---|---|
iconUrl | string | Chain logo URL |
icm_registry | string | ICM registry contract address |
testnet | boolean | Whether the chain is a testnet |
Example: Echo L1
Here's a complete example using the Echo L1: