Supported chains
Chains supported via WaaP SDK
WaaP SDK supports all EVM chains. dApps integrating with WaaP SDK can add custom chains according to EIP 3085 via wallet_addEthereumChain.
Add Custom Chain
try {
await window.waap.request({
method: 'wallet_addEthereumChain',
params: [{
chainId: '0x89', // 137 in hex
chainName: 'Polygon Mainnet',
nativeCurrency: {
name: 'MATIC',
symbol: 'MATIC',
decimals: 18
},
rpcUrls: ['https://polygon-rpc.com/'],
blockExplorerUrls: ['https://polygonscan.com/']
}]
});
} catch (error) {
console.error('Failed to add chain:', error);
}
Switch Chain
To switch to a different chain, use wallet_switchEthereumChain:
try {
await window.waap.request({
method: 'wallet_switchEthereumChain',
params: [{ chainId: '0x89' }], // chainId must be in hexadecimal numbers
});
} catch (error) {
console.error('Failed to switch chain:', error);
}
Chains supported on WaaP.xyz
Mainnets:
- Ethereum (1)
- Optimism (10)
- Gnosis Chain (100)
- Polygon (137)
- Fantom (250)
- zkSync (324)
- Shape (360)
- Base (8453)
- Arbitrum One (42161)
- Celo (42220)
- Avalanche (43114)
- Linea (59144)
- Scroll (534352)
- Aurora (1313161554) Note: Limited support
Testnets:
- Ethereum Sepolia (11155111)
- Optimism Sepolia (11155420)
- Base Sepolia (84532)
- Polygon Amoy (80002)
- Optimism Goerli (420)