🗃
Blockchains
0xWeb
includes some blockchain configurations and RPC endpointsChain slug | Name |
---|---|
eth | Ethereum |
eth:goerli | Ethereum Testnet |
polygon | Polygon Network |
bsc | Binance Smart Chain |
arbitrum | Arbitrum One |
xdai | Gnosis Chain |
hardhat | Local Hardhat Development Network |
celo | Celo Platform |
heco | HECO Chain |
Edit the configuration
yml
by running:0xweb config -e
A default configuration will be copied into the new configuration file, which should be opened with your default editor for
yml
files.- 1 Add a new platform to the
web3
section, for example:
web3:
foo:
chainId: 5555
chainToken: FOO
endpoints:
- url: 'https://foo-rpc-example'
- url: 'wss://foo-socket-url-example'
- url: 'https://some-other-url'
- 2 Add the Blockchain Explorer configuration optionally to read the ABI and the sources.
0xWeb
supports Etherscan
and Blockscout
forks, if there is one for your custom chain, add that information to the blockchainExplorer
sectionblockchainExplorer:
foo:
key: YOUR_KEY
host: 'https://api.bscscan.com'
www: 'https://bscscan.com'
Last modified 1mo ago