Ethereum Providers
Last updated
Last updated
Using Ethers.js or Web3.js with the Wepin Provider allows you to interact with EVM-compatible blockchain networks.
Is the blockchain you need not listed? Please contact the Wepin team for blockchain support.
Chain ID | Network Name | Network Variable |
---|---|---|
First, initialize Wepin
, then obtain the provider.
Web3
using web3.js
Web3
using ethers.js
Please refer to: ethers.js for React native
Through the initialized web3
, you can retrieve account information.
Using the account information, you can query the balance.
You can refer to the link below to query not only the balance but also fee information, block number, etc.
You can send transactions.
You can perform contract calls.
For more details on the Ethereum-compatible network provider, please refer to the link below.
1
Ethereum Mainnet
ethereum
5
Ethereum Goerli Testnet
evmeth-goerli
11155111
Ethereum Sepolia
evmeth-sepolia
19
Songbird Canary Network
evmsongbird
137
Polygon Mainnet
evmpolygon
80002
Polygon Amoy
evmpolygon-amoy
8217
Klaytn Mainnet
klaytn
1001
Klaytn Testnet
klaytn-testnet
2731
Ant-Time Testnet
evmanttime-testnet