92db7f165d
## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint` - [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) The template repository can be found [here](https://github.com/saurabhburade/with-evm-chains) Public reviews, and improvement suggestions are welcome! ## Supported Blockchains 1. ETHEREUM 2. ROPSTEN 3. RINKEBY 4. GÖRLI 5. KOVAN 6. MATIC 7. MATIC_TESTNET 8. FANTOM 9. FANTOM_TESTNET 10. XDAI 11. BSC 12. BSC_TESTNET 13. ARBITRUM 14. ARBITRUM_TESTNET 15. MOONBEAM_TESTNET 16. AVALANCHE and more ### Note - This template has the flexibility to seamlessly extend to other EVM Blockchains. - It has web3.js and wallet connection modules. - It supports blockchain Read and Write functionalities. Co-authored-by: Balázs Orbán <18369201+balazsorban44@users.noreply.github.com>
40 lines
2 KiB
TypeScript
40 lines
2 KiB
TypeScript
import { ChainId } from './chainIds'
|
|
|
|
const RPC = {
|
|
[ChainId.ETHEREUM]: 'https://api.sushirelay.com/v1',
|
|
// [ChainId.ETHEREUM]: 'https://eth-mainnet.alchemyapi.io/v2/HNQXSfiUcPjfpDBQaWYXjqlhTr1cEY9c',
|
|
// [ChainId.MAINNET]: 'https://eth-mainnet.alchemyapi.io/v2/q1gSNoSMEzJms47Qn93f9-9Xg5clkmEC',
|
|
[ChainId.ROPSTEN]:
|
|
'https://eth-ropsten.alchemyapi.io/v2/cidKix2Xr-snU3f6f6Zjq_rYdalKKHmW',
|
|
[ChainId.RINKEBY]:
|
|
'https://eth-rinkeby.alchemyapi.io/v2/XVLwDlhGP6ApBXFz_lfv0aZ6VmurWhYD',
|
|
[ChainId.GÖRLI]:
|
|
'https://eth-goerli.alchemyapi.io/v2/Dkk5d02QjttYEoGmhZnJG37rKt8Yl3Im',
|
|
[ChainId.KOVAN]:
|
|
'https://eth-kovan.alchemyapi.io/v2/6OVAa_B_rypWWl9HqtiYK26IRxXiYqER',
|
|
[ChainId.FANTOM]: 'https://rpcapi.fantom.network',
|
|
[ChainId.FANTOM_TESTNET]: 'https://rpc.testnet.fantom.network',
|
|
[ChainId.MATIC]: 'https://polygon-rpc.com/',
|
|
[ChainId.MATIC_TESTNET]: 'https://rpc-mumbai.matic.today',
|
|
[ChainId.XDAI]: 'https://rpc.xdaichain.com',
|
|
[ChainId.BSC]: 'https://bsc-dataseed.binance.org/',
|
|
[ChainId.BSC_TESTNET]: 'https://data-seed-prebsc-2-s3.binance.org:8545',
|
|
[ChainId.MOONBEAM_TESTNET]: 'https://rpc.testnet.moonbeam.network',
|
|
[ChainId.AVALANCHE]: 'https://api.avax.network/ext/bc/C/rpc',
|
|
[ChainId.AVALANCHE_TESTNET]: 'https://api.avax-test.network/ext/bc/C/rpc',
|
|
[ChainId.HECO]: 'https://http-mainnet.hecochain.com',
|
|
[ChainId.HECO_TESTNET]: 'https://http-testnet.hecochain.com',
|
|
[ChainId.HARMONY]: 'https://api.harmony.one',
|
|
[ChainId.HARMONY_TESTNET]: 'https://api.s0.b.hmny.io',
|
|
[ChainId.OKEX]: 'https://exchainrpc.okex.org',
|
|
[ChainId.OKEX_TESTNET]: 'https://exchaintestrpc.okex.org',
|
|
[ChainId.ARBITRUM]: 'https://arb1.arbitrum.io/rpc',
|
|
[ChainId.PALM]:
|
|
'https://palm-mainnet.infura.io/v3/da5fbfafcca14b109e2665290681e267',
|
|
[ChainId.FUSE]: 'https://rpc.fuse.io',
|
|
[ChainId.CELO]: 'https://forno.celo.org',
|
|
[ChainId.MOONRIVER]: 'https://rpc.moonriver.moonbeam.network',
|
|
[ChainId.TELOS]: 'https://mainnet.telos.net/evm',
|
|
}
|
|
|
|
export default RPC
|