Solana RPC Overview

Solana RPC provides methods to read network state, send transactions, simulate execution, and subscribe to live updates.

Cluster Endpoints

Every RPC request goes to a specific cluster. The endpoint determines which network you read from and where transactions are sent.

ClusterPublic RPC endpointDescription
Mainnethttps://api.mainnet.solana.comProduction network using real SOL.
Devnethttps://api.devnet.solana.comDeveloper testing network. Use the Solana Faucet to get Devnet SOL.
Testnethttps://api.testnet.solana.comValidator testing network.

Public RPC endpoints are shared infrastructure and are not intended for production applications. Use dedicated or private RPC infrastructure for production traffic. Shared public endpoints may return 429 when you exceed rate limits and 403 when traffic is blocked.

For local development, Surfpool and solana-test-validator use these default localhost endpoints:

InterfaceEndpoint
HTTP RPChttp://localhost:8899
WebSocketws://localhost:8900

Configuring State Commitment

Many RPC methods and subscriptions accept a commitment parameter. It specifies how finalized a block must be before the node returns data or sends a notification.

CommitmentDescription
processedThe node's most recent processed block. This is the newest view, but it can still be rolled back.
confirmedA block directly voted on by a supermajority of stake, meaning more than two-thirds of the network's active stake.
finalizedA block the cluster recognizes as finalized with maximum lockout, meaning it has reached the strongest confirmation state used by the network.

If a method or subscription accepts commitment and you omit it, the default is typically finalized.

Is this page helpful?

Table of Contents

Edit Page

Managed by

© 2026 Solana Foundation.
All rights reserved.
Get connected
Solana RPC Overview | Solana