Skip to main content

Ethereum Libraries

caution

Proceed with caution! This page is in progress.

In order for a web app to interact with the Ethereum blockchain (i.e. read blockchain data and/or send transactions to the network), it must connect to an Ethereum node.

For this purpose, every Ethereum client implements the JSON-RPC specification, so there are a uniform set of endpoints that applications can rely on.

If you want to use JavaScript to connect with an Ethereum node, it's possible to use vanilla JavaScript but several convenience libraries exist within the ecosystem that makes this much easier. With these libraries, developers can write intuitive, one-line methods to initialize JSON RPC requests (under the hood) that interact with Ethereum.

Why use a library?

These libraries abstract away much of the complexity of interacting directly with an Ethereum node. They also provide utility functions (e.g. converting ETH to Gwei) so as a developer you can spend less time dealing with the intricacies of Ethereum clients and more time focused on the unique functionality of your application.

For more information on Ethereum libraries click here

Resources

web3.js

ethers.js

web3.py

Tutorials for using libraries with Edgeware

using-web3

using-web3.py

using-ethers.js

Official library documentation guides

Official documentation - web3.js

Official documentation - web3.py

Official documentation - ethers.js