Skip to main content

JSON-RPC HTTP

Solana HTTP RPC is JSON-RPC 2.0 over HTTP POST with Content-Type: application/json, documented in Solana HTTP RPC docs. Use it for request-response state reads, simulation, and transaction submission.

curl -sS http://127.0.0.1:8899 -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"getSlot"}'
MethodUse
getHealthHealth probe.
getSlotCurrent slot.
getBalanceLamports for an account.
getAccountInfoOwner, lamports, executable flag, and data.
getProgramAccountsProgram-owned account scan; expensive without filters.
simulateTransactionPreflight a signed transaction.
sendTransactionSubmit a signed serialized transaction.
tip

Apply /developer/rate-limiting to scans, batch calls, and send retries.