Adding a Celo Network to Coinbase Wallet
To add a Celo Network to your dApp, you can use Coinbaseās RPC APIāswallet_addEthereumChain
method. (See documentation).
Here is a JavaScript snippet you can use:
INSERT_NETWORK_PARAMS_HERE
, please replace with any of the following constants, depending on which network youād like to connect to.
Mainnet
Celo Sepolia
Alfajores (deprecated)
Adding Tokens (e.g. cUSD, cEUR)
To watch an asset on a Celo netowork (e.g. cUSD, cEUR) in your dApp, you can use MetaMaskās RPC APIāswallet_watchAsset
method. (See documentation).
Here is a JavaScript snippet you can use:
- Where it says
INSERT_ADDRESS_HERE
, please replace with any of the following constants, depending on which network and which asset youād like to connect to. - Where it says
INSERT_SYMBOL_HERE
, please replace with the correct symbol for the asset youād like to watch. For Celo Dollars, itāscUSD
and for Celo Euros, itāscEUR
.
View available token addresses for Celo assets to add to Coinbase Wallet here.