The ethers.js library is a comprehensive and concise library for engaging with the Ethereum Blockchain and its surrounding ecosystem.
Some of the main features are:
Import and export JSON wallets (Geth, Parity and crowdsale)
Import and export BIP 39 mnemonic phrases (12 word backup phrases) and HD Wallets
Meta-classes create JavaScript objects from any contract ABI, including ABIv2 and Human-Readable ABI
Connect to Ethereum nodes over JSON-RPC, INFURA, Etherscan, Alchemy or Metamask
The biggest difference between v5 and v6 is in the use of modern ES6 features. The major changes can been seen on:
Ethers V6
The ethers.js library is a comprehensive and concise library for engaging with the Ethereum Blockchain and its surrounding ecosystem.
Some of the main features are:
The biggest difference between v5 and v6 is in the use of modern ES6 features. The major changes can been seen on:
For more information check the Ethers v6 documentation.
Implementation Example
Package Install:
Using Wallets
Tab -> Wallet.createRandom(); Tab -> new Wallet(PRIVATE_KEY);
Using Provider
Tab -> JsonRpcProvider Tab -> Web3Provider (Injected Wallets i.e Metamask)
Full Example of Sending a Transaction