Ethereum Providers
Using Ethers.js or Web3.js with the Wepin Provider allows you to interact with EVM-compatible blockchain networks.
Supported Networks
Is the blockchain you need not listed? Please contact the Wepin team for blockchain support.
Initialize Web3
First, initialize Wepin
, then obtain the provider.
Initialize Web3
using web3.js
Web3
using web3.js
Initialize Web3
using ethers.js
Web3
using ethers.js
Please refer to: ethers.js for React native
Methods
Get Accounts
Through the initialized web3
, you can retrieve account information.
Get Balance
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.
Send Transaction
You can send transactions.
Contract Call
You can perform contract calls.
For more details on the Ethereum-compatible network provider, please refer to the link below.
Last updated