SDK

Javascript API libraries

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

For this purpose, every Agora 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 Agora 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 Agora.

The following Ethereum documents are relevant to Agora as the JSON-RPC specification is the same.

Web3.js - JavaScript API

Ethers.js - Complete Ethereum wallet implementation and utilities in JavaScript and TypeScript

Web3-wrapper - Typescript alternative to Web3.js

Alchemyweb3 - Wrapper around Web3.js with automatic retries and enhanced apis

Alchemy NFT API - API for fetching NFT data, including ownership, metadata attributes and more

Go libraries

Last updated