Ethers·js
What is Ethers.js?
Getting Started with Ethers.js
Setting up Ethers Provider
// 1. Import ethers const ethers = require('ethers'); // 2. Define network configurations const providerRPC = { manta: { name: 'Atleta Olympia', rpc: 'https://testnet-rpc.atleta.network', // Insert your RPC URL here chainId: 2340, //Insert your ChainID Here }, }; // 3. Create ethers provider const provider = new ethers.providers.StaticJsonRpcProvider( providerRPC.constellation.rpc, { chainId: providerRPC.constellation.chainId, name: providerRPC.constellation.name, } );
Last updated