Skip to content
Fourohtwo

blockrun.ai/api/v1/rpc/abstract

Multi-chain JSON-RPC passthrough fronted by BlockRun, powered by Tatum's gateway across 40 chains (Ethereum, Base, Solana, Polygon, BSC, Arbitrum, Optimism, Avalanche, Bitcoin, Sui, and more). One endpoint, every chain, pay-per-call in USDC, no API key. $0.002 per call (or per element of a JSON-RPC batch). Network: Abstract.

BaseAnswering
POSThttps://blockrun.ai/api/v1/rpc/abstract

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://blockrun.ai/api/v1/rpc/abstract", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"id":{"description":"JSON-RPC id","type":["string","number"]},"jsonrpc":{"description":"\"2.0\"","type":"string"},"method":{"description":"Chain RPC method, e.g. eth_blockNumber, eth_call, eth_getBalance (EVM) or getSlot, getAccountInfo (Solana).","type":"string"},"params":{"description":"Method-specific params.","type":"array"}}),
});
console.log(await res.json());

Example input

{
  "id": {
    "description": "JSON-RPC id",
    "type": [
      "string",
      "number"
    ]
  },
  "jsonrpc": {
    "description": "\"2.0\"",
    "type": "string"
  },
  "method": {
    "description": "Chain RPC method, e.g. eth_blockNumber, eth_call, eth_getBalance (EVM) or getSlot, getAccountInfo (Solana).",
    "type": "string"
  },
  "params": {
    "description": "Method-specific params.",
    "type": "array"
  }
}

More from BlockRun.AI