Archive Node RPC

Sonic Archive Node RPC

Query the full history of Sonic — balances, contract storage, and transaction traces at any past block — with archive node access included on every paid SwiftNodes plan. No separate archive tier, no per-request fees.

Endpoint

https://rpc.swiftnodes.io/rpc/sonic?key=YOUR_API_KEY

Archive queries use the same Sonic HTTP endpoint — just pass a historical block tag. The matching WebSocket endpoint is wss://rpc.swiftnodes.io/ws/sonic?key=YOUR_API_KEY.

Query historical Sonic state

// Read historical state at a past block on Sonic (archive query)
const balanceAtBlock = await client.getBalance({
  address: "0x0000000000000000000000000000000000000000",
  blockNumber: 1_000_000n,
});

// Replay a transaction's execution trace (requires archive data)
const trace = await fetch("https://rpc.swiftnodes.io/rpc/sonic?key=YOUR_API_KEY", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    jsonrpc: "2.0", id: 1,
    method: "debug_traceTransaction",
    params: ["0x<txhash>", { tracer: "callTracer" }],
  }),
}).then((r) => r.json());

What archive access unlocks

  • eth_getBalance / eth_call at any historical block number
  • eth_getStorageAt for contract storage at a past block
  • debug_traceTransaction to replay and inspect old transactions
  • Point-in-time analytics, accounting, and reconciliation

Sonic is a Layer 1 (EVM, custom execution), with ~~1 second block times and sub-second (~1s) finality. Historical queries reach back across its entire chain history.

Frequently asked questions

Does SwiftNodes offer Sonic archive node access?

Yes. Archive access for Sonic — querying state at any historical block — is included on every paid plan. There is no separate, more expensive "archive tier" to upgrade to.

What's the difference between a full node and an archive node?

A full node keeps only recent state (typically the last ~128 blocks) and prunes older state. An archive node retains the complete historical state, so you can read balances, storage, and run traces at any past block on Sonic.

Is Sonic archive access an extra charge?

No. Unlike providers that gate archive behind a premium tier, SwiftNodes includes archive queries in all paid plans for supported chains, billed at the same flat monthly rate.

See the full Sonic RPC page for chain details, or the API reference for the complete method list.

Get a Sonic endpoint free

HTTP + WebSocket, flat-rate, pay with crypto, no KYC. Live in 30 seconds.

Get your API key