RPC server

A Solana JSON-RPC, running on your laptop.

Promote any sandbox to a wire-compatible JSON-RPC endpoint. Point @solana/web3.js, Anchor, Phantom dev mode, or your own dApp at it. No mock, no proxy.

http://127.0.0.1:8899/sandbox/main

Connect a client.

Anything that speaks Solana speaks Reley. Drop the sandbox URL in instead of mainnet.

  • @solana/web3.jsDrop the URL into new Connection(url).
  • AnchorSet AnchorProvider with the sandbox URL.
  • Phantom dev modeUse as custom RPC for any local dApp.
  • Solana CLIsolana config set --url <sandbox URL>.
@solana/web3.js
import { Connection, Keypair } from 'solana-web3.js'

const connection = new Connection(
  'http://127.0.0.1:8899/sandbox/main',
  'confirmed',
)

const payer = Keypair.generate()
await connection.requestAirdrop(payer.publicKey, 1e9)

Methods covered.

HTTP · 24 methods · WS subscriptions on the roadmap
Accounts
  • getAccountInfo
  • getMultipleAccounts
  • getProgramAccounts
  • getBalance
Tokens
  • getTokenAccountBalance
  • getTokenAccountsByOwner
  • getTokenSupply
Transactions
  • sendTransaction
  • simulateTransaction
  • getSignatureStatuses
  • getTransaction
Cluster
  • getLatestBlockhash
  • getBlockHeight
  • getSlot
  • getEpochInfo
Utility
  • getMinimumBalanceForRentExemption
  • requestAirdrop (synthetic)

Stop testing
against production.

Source under PolyForm Noncommercial 1.0. macOS today. Windows and Linux next.

Apple Silicon + Intel · macOS 12+