Overview

OrbitFlare RPC nodes accept HTTP requests using the JSON-RPC 2.0 specification. This API allows you to interact with the Solana blockchain for querying data and submitting transactions.

Request Format

To make a JSON-RPC request, send an HTTP POST request with the following specifications:

  • Endpoint: https://rpc.orbitflare.com
  • Header: Content-Type: application/json
  • Body: JSON object with these fields:
FieldTypeDescription
jsonrpcstringMust be “2.0”
idstring/numberUnique request identifier
methodstringThe RPC method name
paramsarrayArray of method parameters

Example Request

curl https://rpc.orbitflare.com -X POST -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBalance",
  "params": [
    "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
  ]
}'

Response Format

Responses will be JSON objects containing:

FieldTypeDescription
jsonrpcstringAlways “2.0”
idstring/numberMatches request identifier
resultvariesThe method’s result data
errorobjectError details (if applicable)

Commitment

Many methods accept a commitment parameter to specify how confirmed the data should be:

  • processed: Latest block (fastest, not confirmed)
  • confirmed: Confirmed by supermajority (balance between speed and finality)
  • finalized: Finalized by supermajority (slowest, fully confirmed)

Example with commitment:

curl https://rpc.orbitflare.com -X POST -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBalance",
  "params": [
    "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
    {"commitment": "finalized"}
  ]
}'

Batch Requests

You can send multiple requests in a single HTTP call by providing an array of request objects:

curl https://rpc.orbitflare.com -X POST -H "Content-Type: application/json" -d '[
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getBalance",
    "params": ["83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"]
  },
  {
    "jsonrpc": "2.0",
    "id": 2,
    "method": "getBlockHeight",
    "params": []
  }
]'

Common Types

TypeDescription
PubkeyBase-58 encoded public key string
HashBase-58 encoded SHA-256 hash string
SignatureBase-58 encoded Ed25519 signature
SlotInteger block height/slot number

Health Check

You can check node health with a GET request:

curl https://rpc.orbitflare.com/health

Possible responses:

  • ok: Node is healthy and up-to-date
  • behind { slots: number }: Node is behind by N slots
  • error: Node is unhealthy

Available Methods

Account & Program

  • getAccountInfo
  • getMultipleAccounts
  • getProgramAccounts
  • getMinimumBalanceForRentExemption

Blocks & Slots

  • getBlock
  • getBlocks
  • getBlockHeight
  • getSlot
  • getSlotLeader

Transactions

  • getTransaction
  • getSignatureStatuses
  • getSignaturesForAddress
  • sendTransaction
  • simulateTransaction

Tokens

  • getTokenAccountBalance
  • getTokenAccountsByDelegate
  • getTokenAccountsByOwner
  • getTokenSupply

Rate Limits

Rate limits vary by subscription tier. Check your dashboard for your current limits and usage statistics.

Best Practices

  1. Use Appropriate Commitment Levels

    • Use processed for UI updates
    • Use confirmed for most operations
    • Use finalized for critical operations
  2. Optimize Requests

    • Use batch requests when possible
    • Implement proper caching
    • Choose appropriate polling intervals
  3. Handle Errors

    • Implement proper error handling
    • Use exponential backoff for retries
    • Monitor request failures

Support

For technical support or questions about our RPC service: