crypto · crypto · evm · base · ethereum · contract · eth-call · rpc · abi · read-only · onchain

Base contract read

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.

$0.005 USDCBasex402 v2POST

Endpoint

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

Send the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.

Pay $0.005 USDC and run in your browser

Input example

{
  "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "call_data": "0x313ce567",
  "block_tag": "safe",
  "gas_limit": 2000000,
  "output_types": [
    "uint8"
  ]
}

Response shape

View free static sample JSON

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

Try the payment challenge

curl -i -X POST 'https://apiacre.com/v1/crypto/base-contract-read' \
  -H 'content-type: application/json' \
  --data '{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","call_data":"0x313ce567","block_tag":"safe","gas_limit":2000000,"output_types":["uint8"]}'