Quickstart

Get an endpoint and make your first Solana RPC call.

This quickstart takes you from zero to a first call.

1. Get an endpoint

Request an endpoint from the team (a self-serve dashboard is on the way). You will receive an HTTP and a WebSocket URL scoped to your region, plus a key.

2. Make a call

hello.ts
const ENDPOINT = "https://your-region.rpcedge.com";
 
const res = await fetch(ENDPOINT, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0",
    id: 1,
    method: "getSlot",
    params: [{ commitment: "processed" }],
  }),
});
 
console.log(await res.json());

3. Next steps

  • Read the RPC overview for the full method surface.
  • Stream live state with Yellowstone gRPC.
  • Land transactions fast with the transaction sender.