Using External Libraries
Sending raw RPC requests can be error-prone and sometimes overwhelming. This guide will list some common external libraries for the Ethereum ecosystem that are compatible with the Stargazer ChainProvider.
Ethers.js
The ethers.js package is a general purpose library for interacting with the ethereum ecosystem. It offers different features from contract interaction to EIP-712 message signing for wallets.
In ethers.js there are different types of providers, the Stargazer ChainProvider
is compatible with ethers.js Web3Provider
.
Once the ethers.js Web3Provider
is created you can start interacting with the network using this library.
Web3.js
The web3.js library offers a simple but powerful API to interact with the ethereum ecosystem using EIP-1193, HTTP, IPC or WebSocket providers.
The web3.js library reveals the Web3
class which is compatible with the Stargazer ChainProvider
.
Once the web3.js Web3
object is created you can start interacting with the network using this library.
Last updated
Was this helpful?