Skip to main content

Quickstart for Developers

A high-performance multichain blockchain infrastructure built on a Hypernode cluster and a sophisticated data indexing engine, Nodit lets you start building across 20+ blockchain networks the moment an API Key is issued.

Hypernode
Performance & Stability

The Hypernode-based multi-node cluster delivers smart load balancing that accounts for sync state, along with automatic failover. Access high-performance node infrastructure through a single endpoint.

Web3 Data API
Advanced Indexing

A sophisticated indexing engine structures on-chain data so that a single REST API call retrieves token balances, transfer history, NFT metadata, and more — no complex query logic required.

Free to Start
Flexible Pricing

Start on the free plan and pay only for what you use with Compute Unit (CU)-based metered billing. Scale your plan up or down as your project grows.

SLA 99.9%
Enterprise-Grade Reliability

Enterprise-grade availability and security infrastructure apply equally to personal projects and production services. Auto-scaling maintains service continuity even as traffic increases.


0. Prerequisites

Sign up and create a project in the Nodit Console. (Your first project is created automatically upon registration.) API Keys are issued per project, so at least one project is required to make API calls.

1. Check Your API Key

Every Nodit API request requires an API Key issued for the project. Select a project in the Nodit Console and find the key on the Dashboard tab.

Finding your API Key on the Nodit Console Dashboard

Copy your API Key from the Nodit Console and paste it into the input field below. The key is automatically applied to the interactive call examples further down this page.

Your API Key will be applied to the code examples and requests below.

API Key Management

An API Key grants full API access to the associated project. Exposing it publicly can lead to unauthorized use or unexpected charges. Store it as an environment variable rather than embedding it directly in source code or client-side code.

With your API Key confirmed, check which APIs are available for the chain you plan to use. This makes it straightforward to map the examples below to your actual project.

2. Check Chain Coverage

Supported APIs and services vary by chain, and the full coverage is visible in both the console and the documentation. Some chains support both Node API and Web3 Data API; others support only one. Depending on the scope, you may also need to review the Webhook, Stream, or Indexer API documentation.

In the console, go to the Chains screen, select a chain, and open Copy Endpoint. This shows all API types available for the selected project and network at a glance.

Copying an endpoint after selecting a chain

The popup displays endpoints for each API type supported by the selected chain. For example, Node API provides HTTPS and WSS addresses, while Web3 Data API provides a REST endpoint. Depending on chain support, Webhook, Stream, and Indexer API addresses may also appear.

The examples in this document are fixed to Ethereum Mainnet and cover Node API and Web3 Data API as representative cases.

API Coverage by Chain

The API types displayed in the console vary by chain and network. Before integrating, check the Supported Chains page for feature coverage and paid plan requirements by chain. During development, use API Overview alongside the Chains screen in the console.

With coverage confirmed, call the APIs directly within this page to see response formats and usage patterns. Start with Node API, which returns raw RPC responses, then move on to Web3 Data API, which returns structured data.

3. Try API Calls

Working through these two examples in order gives you a quick comparison of the different data access approaches Nodit provides.

3-1. Call the Node API

This example connects to the Ethereum Mainnet Node API and queries a native asset balance using the eth_getBalance method. The Ethereum Node API operates over JSON-RPC, and each method requires specific params. This method takes an account address and the block reference value latest.

Enter the API Key above and click Try it out to see the response.

Node API
curl -X POST 'https://ethereum-mainnet.nodit.io/' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "latest"]
}'
Choose a Node API Authentication Method

Node API supports two authentication methods. Choose one based on your environment.

  • API Key in URL: https://{chain}-{network}.nodit.io/{YOUR_API_KEY} — suitable when connecting from wallet apps that cannot set custom headers.
  • X-API-KEY header: Remove the API Key from the URL and pass it as a header — suitable for server environments where the API Key must be kept secure.

Using both methods simultaneously returns a 401 Unauthorized error, so use only one method per request.

A successful request returns the balance as a hexadecimal string in wei. Applications can convert this value to ETH units for display in wallet balance or portfolio screens.

With the basic RPC call pattern confirmed via Node API, the next step shows how to retrieve the same account data in a more structured form using Web3 Data API.

3-2. Call the Web3 Data API

The getTokensOwnedByAccount method queries the USDC and USDT token balances held by a specific account on Ethereum Mainnet. This example passes both stablecoin contract addresses in the contractAddresses parameter to retrieve only the target assets. Web3 Data API uses REST, and unlike Node API — where you assemble raw responses yourself — it returns indexed data in a structured format, making it well-suited for building asset screens or backend query features.

Enter the API Key above and click Try it out to see the response.

Web3 Data API
curl -X POST 'https://web3.nodit.io/v1/ethereum/mainnet/token/getTokensOwnedByAccount' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"accountAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"contractAddresses": ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "0xdAC17F958D2ee523a2206206994597C13D831ec7"],
"page": 1,
"rpp": 10
}'

Once both example calls are working, the patterns shown here can be carried over into your actual project setup. The next section covers how to connect using your own chain, your own endpoint, and your preferred development tools.

4. Apply It to Your Project

This document demonstrated a few API calls against Ethereum Mainnet. When integrating with a real application, first verify the supported scope for the target chain and network — as covered in step 2 — then apply the endpoint and request format for your project.

  1. On the Chains screen in the console, select the chain and network you want to use.
  2. In the Copy Endpoint popup, find the endpoint to connect to your project.
  3. From the supported API types, select the endpoint you need.
  4. In each API's documentation, review the request format and parameters for each method and apply them to your application.

4-1. Connect a Node Endpoint

On EVM chains such as Ethereum, you can connect directly to local development tools like Hardhat and Foundry. Manage the API Key as an environment variable when applying to a real project.

Add the Nodit endpoint to the networks configuration in hardhat.config.ts or hardhat.config.js.

hardhat.config.ts
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";

const config: HardhatUserConfig = {
solidity: "0.8.28",
networks: {
noditEthereum: {
url: `https://ethereum-mainnet.nodit.io/${process.env.NODIT_API_KEY}`,
},
},
};

export default config;

Set the environment variable, then run the following command.

Hardhat Example
NODIT_API_KEY={YOUR_API_KEY} npx hardhat console --network noditEthereum

With the Node connection in place, results from both Node API and Web3 Data API for the same account can be combined to build user-facing screens or backend responses.

4-2. Portfolio Example

Combining the balance query API shown earlier with getTokensOwnedByAccount produces an account asset view like the one below. This inline example uses the API Key entered above to display ETH holdings and USDC/USDT stablecoin balances for a specific address on Ethereum Mainnet in a single view.

Portfolio Preview

ETH + Stablecoin Balances

NetworkEthereum Mainnet
Account0xd8dA...6045
ETH Balance

Click the button to load the ETH balance.

Stablecoin Balances

Click the button to load stablecoin balances.

Next Steps

After reviewing the portfolio example, continue with the documentation relevant to your project.

  • API Overview — Full list of supported API types and endpoints by chain
  • Web3 Data API — Query API backed by on-chain data indexing
  • Webhook — Send notifications to a designated server when on-chain events occur
  • Stream — Subscribe to on-chain events in real time over a persistent WebSocket channel
  • Faucets — Claim testnet tokens
Get Started

Create a project in the Nodit Console and issue an API Key to make your first API call.