Web Libraries
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
Implementation Example
-
Package Install
-
Contract Call
Additional EthersV5 Documentation
Click here for the official documentation.
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:
Implementation Example
-
Package Install
-
Contract Call
Additional EthersV6 Documentation
Click here for the official documentation.
Set of Javascript libraries enabling interaction with a local or remote Ethereum node through HTTP, IPC, or WebSocket protocols.
Some of the features are:
- Complete implementation of Ethereum’s JSON-RPC client API over HTTP and IPC
- Create accounts, process and sign transactions.
- Get block and state information from Ethereum nodes.
Implementation Example
-
Package install
-
Contract Call
Additional Web3.js Documentation
Click here for the official documentation.
Viem is a TypeScript interface for Ethereum that provides low-level stateless primitives for interacting with Ethereum.
Some of the main features are:
- Abstractions over the JSON-RPC API
- APIs for interacting with Smart Contracts
- Utilities for working with ABIs
Implementation Example
-
Package Install
-
Contract Call
Additional Viem Documentation
Click here for the official documentation.
When some platforms or frameworks don't have any quality web3 library or SDK, there's always the possibility to make the blockchain calls directly to the JSON-RPC methods supported by the chain.
Some of the JSON-RPC methods supported by SKALE chains are:
- eth_getBalance
- eth_blockNumber
- eth_getTransactionCount
- eth_sendTransaction
- eth_call
Implementation Example
Get Balance
Additional JSON-RPC Calls Documentation
Click here for the official documentation.
(Maybe move to SKALE folder or under SKALE libraries)
SKALE.js is a community run project designed to offer abstraction over the core SKALE network smart contracts.
Some of the available packages are:
- @skaleproject/ima: provide content to help using IMA, the SKALE native bridge
- @skaleproject/pow-ethers: SKALE proof of work mechanism written with Ethers library
- @skaleproject/pow-web3: SKALE proof of work mechanism written with web3 library
- @skaleproject/utils: package with utility scripts, such as, interaction with SKALE access_control predeployed contract
Additional SKALE.js Documentation
Click here for the official documentation.