API Acre · Crypto Base Contract Read

by API Acre

POSTBaseSolana

$0.005

per call · USD Coin on Base

Execute one bounded read-only eth_call against a resolved Base mainnet block, retain call and block evidence, and optionally decode caller-specified ABI output types.

Endpoint

POST https://apiacre.com/v1/crypto/base-contract-read

1

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/crypto/base-contract-read", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "block_tag": "safe",
    "call_data": "0x313ce567",
    "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "gas_limit": 2000000,
    "output_types": [
      "uint8"
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/crypto/base-contract-read" \
  -H "Content-Type: application/json" \
  -d '{"block_tag":"safe","call_data":"0x313ce567","contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","gas_limit":2000000,"output_types":["uint8"]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "block": {
      "hash": "0x1111111111111111111111111111111111111111111111111111111111111111",
      "number": 34567890,
      "requestedTag": "safe",
      "timestamp": "2026-08-10T16:00:00+00:00"
    },
    "call": {
      "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "dataBytes": 4,
      "from": null,
      "gasLimit": 2000000,
      "selector": "0x313ce567"
    },
    "decodeStatus": "decoded",
    "decodedValues": [
      6
    ],
    "disclaimer": "Read-only public Base mainnet execution at one resolved block. No transaction...",
    "network": "eip155:8453",
    "outputTypes": [
      "uint8"
    ],
    "readOnly": true,
    "result": {
      "bytes": 32,
      "hex": "0x0000000000000000000000000000000000000000000000000000000000000006",
      "returnedBytes": 32,
      "sha256": "d1ec675902ef1633427ca360b290b0b3045a0d9058ddb5e648b4c3c3224c5c68",
      "truncated": false
    },
    "rpcError": null,
    "source": "https://docs.base.org/base-chain/api-reference/ethereum-json-rpc-api/eth_call",
    "success": true,
    "transactionBroadcast": false,
    "warnings": []
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "crypto.base-contract-read",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from API Acre & similar services