Last active
May 27, 2021 07:45
-
-
Save mqklin/a5eb23fee6519f1dfdb291148081a7a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button onClick={() => { | |
window.ethereum.request({ | |
method: 'wallet_addEthereumChain', | |
params: [ | |
{ | |
chainId: '0x1a4', | |
chainName: 'SanR L2 Chain', | |
nativeCurrency: {name: 'SAN', symbol: 'SAN', decimals: 18}, | |
rpcUrls: ['https://l2.144.76.93.41.nip.io/'], | |
blockExplorerUrls: ['http://144.76.93.41:4001/'], | |
}, | |
], | |
}); | |
}}>12345</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment