Skip to main content

Quickstart

Let's discover how to use Nirvana Labs in less than 5 minutes.

Get Started with Ethereum

Nirvana Nodes

Ethereum RPC Overview

A Nirvana Ethereum Node comes with its own dedicated gateway. All the traffic through this gateway is exclusively for your application. With our globally available network of nodes we have you covered no matter where your users are located. Nirvana Nodes are all configured as archive nodes and allow users to perform tracing on past and pending transactions. Other providers may claim they have a global network of nodes but no provider has the level of coverage offered by Nirvana. Our Ethereum nodes alone cover 50 different cities in every continent of the world (besides Antarctica). Wherever you are in the world you're just a few milliseconds away from a Nirvana data center.

Example Ethereum Node: files to https://eth.nirvanalabs.xyz/<CUSTOM_NODE_ID>?apikey=<GENERATED_API_STRING>

We will use the Public Ethereum RPC URL for the remainder of the documentation:

https://eth.nirvanalabs.xyz/public.

If you purchase a node from Nirvana you will need to use your Node URL instead of the public URL.

Open Source Libraries

There are a few different ways to make your first request. You can use an HTTP library such as Curl or Axios (NodeJS), or you can use an Ethereum specific library such as Ethers.js or Web3.py. Our documentation includes code snippets for both HTTP libraries and web3 code-language specific libraries so that any developer can start using Nirvana Nodes right away. Happy coding! 😊

Below is the is the full reference documentation for the open source libraries that work with Nirvana Ethereum Nodes for sending and receiving Ethereum data. We believe in supporting and contributing towards these open-source libraries to build transparency within web3 and eliminate a single point of reliance on one library.

Make Your First RPC Request

const ethers = require("ethers");
(
async () => {
const provider = new ethers.providers.JsonRpcProvider("https://eth.nirvanalabs.xyz/public");
const blockNum = await provider.getBlockNumber();
console.log(blockNum);
}
)()

What's next?

  • Make your first request
  • Add or remove API keys for security
  • Add your new Ethereum RPC url to your wallet
  • Add your new Ethereum RPC url to your dApp
  • Send an Ethereum transaction
  • Find the Ethereum data you need using the API
  • Explore the open-source Ethereum client libraries
  • Deploy your dApp
  • Monitor your metrics