Quickstart

RPC Quickstart

Send your first authenticated Solana JSON-RPC request.

Use JSON-RPC for account reads, block data, transaction submission, and cluster status.

Before you start

You need a NoLimitNodes project with an active node.

  1. Create a project

    Sign in to the dashboard. Create a project and add a Solana node.

  2. Copy the key

    Open the node page. Copy its API key and store the value in NLN_API_KEY.

  3. Send a request

    Call the RPC endpoint with the key in the x-api-key header.

export NLN_API_KEY="YOUR_API_KEY" curl https://rpc.nln.clr3.org \  -H "Content-Type: application/json" \  -H "x-api-key: $NLN_API_KEY" \  -d '{"jsonrpc":"2.0","id":"quickstart","method":"getHealth"}'

A healthy node returns:

{  "jsonrpc": "2.0",  "result": "ok",  "id": "quickstart"}

Read the current slot

const response = await fetch("https://rpc.nln.clr3.org", {  method: "POST",  headers: {    "content-type": "application/json",    "x-api-key": process.env.NLN_API_KEY,  },  body: JSON.stringify({    jsonrpc: "2.0",    id: "slot",    method: "getSlot",    params: [{ commitment: "confirmed" }],  }),}) const body = await response.json()if (!response.ok || body.error) {  throw new Error(body.error?.message ?? `HTTP ${response.status}`)} console.log(body.result)

Production checklist

  • Set a request timeout.
  • Retry 429, 500, and 503 responses with backoff.
  • Do not retry invalid parameters.
  • Keep your key on the server.
  • Log the JSON-RPC request ID with each error.