Get Started
Last updated
Last updated
At EZAT, we run RPC endpoints for Polygon, Binance Smart Chain, Ethereum, and Metabit. To make it easier for developers to integrate with EZAT, we've created this document that shows how to call RPC methods using JavaScript.
API Key Authentication - By default, all endpoints created on EZAT are protected by an API key in the URL which looks something like this:
For API keys generation, read .
You can also pass the API key ID and API key in the header which looks something like this:
Disabling API Key Authentication - You can also disable the API Key authentication completely in API Key Management.
At EZAT we prefer ethers.js as our JS library for interacting with JSON-RPCs when possible. Ethers aims to be a complete and compact library for interacting with the Ethereum Blockchain and its ecosystem. If you'd like to use it, please be sure to install it like so:
There is also Web3.js - it's a collection of libraries that allow you to interact with a local or remote ethereum node using HTTP, IPC or WebSocket. If you'd like to use it, please be sure to install it like so:
To run our JavaScript code examples, you'll need to have Node v18 and up installed. You can follow to install the latest, stable version of Node globally. Check if you have it by running the following: