Ethereum Libraries

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

Tutorials for using libraries with Edgeware

Official library documentation guides

web3.js - Ethereum JavaScript API — web3.js 1.0.0 documentation
Official documentation - web3.js
Introduction — Web3.py 5.24.0 documentation
Official documentation - web3.py
Documentation
Official documentation - ethers.js
Last modified 14d ago