13trust / 100

State Batch

by EVM State Batch in Onchain & crypto

x402 APIFailing, checked 2 h ago

Read-only EVM state API for wallet snapshots, ERC-20 balances, token allowances, contract code, block heights, and bounded eth_call reads across Ethereum, Base, Arbitrum, Optimism, and Polygon. Fixed price: $0.10 USDC on Base for a batch of up to 50 checks. Only submitted checks run. Results are provider-reported RPC data, not cryptographic proofs.

POST
https://evmstate.com/v1/state-batch/50
Price
$0.1
per call in USDC
Uptime
0.0%
last 30 days
Response time
-
no timed checks yet
Last check
Failed
2 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 2 h ago: Served content without asking for payment

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://evmstate.com/v1/state-batch/50

Each call costs $0.1 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://evmstate.com/v1/state-batch/50
content-type: application/json

{
  "checks": [
    {
      "address": "0x0000000000000000000000000000000000000000",
      "chain": "ethereum",
      "id": "ethereum-native-balance",
      "type": "native_balance"
    },
    {
      "address": "0x0000000000000000000000000000000000000000",
      "chain": "base",
      "id": "base-native-balance",
      "type": "native_balance"
    },
    {
      "address": "0x0000000000000000000000000000000000000000",
      "chain": "arbitrum",
      "id": "arbitrum-native-balance",
      "type": "native_balance"
    },
    {
      "address": "0x0000000000000000000000000000000000000000",
      "chain": "optimism",
      "id": "optimism-native-balance",
      "type": "native_balance"
    },
    {
      "address": "0x0000000000000000000000000000000000000000",
      "chain": "polygon",
      "id": "polygon-native-balance",
      "type": "native_balance"
    }
  ],
  "requestId": "12345678-1234-4234-9234-123456789abc"
}

Parameters

ParameterTypeRequiredDescription
checksarray of objectYesOnly these checks run. Each check needs a unique id and supported chain. For a five-chain wallet snapshot, create one native_balance check for each supported chain using the same wallet address. The discovery example uses the valid all-zero address; replace it with the target wallet. Token and allo…
requestIdstringYesGenerate a fresh UUIDv4 for each new request and retain it to recover the exact paid result. The Bazaar example UUID is illustrative; replace it before calling.

Example response

The provider's example. We can't check it without paying.

Example response, 50 lines
{
  "expiresAt": "2026-11-01T00:00:00.000Z",
  "recoveryUrl": "https://evmstate.com/v1/results/12345678-1234-4234-9234-123456789abc",
  "requestId": "12345678-1234-4234-9234-123456789abc",
  "results": [
    {
      "blockNumber": "0x18e456e",
      "chain": "ethereum",
      "id": "ethereum-native-balance",
      "type": "native_balance",
      "value": "0x0"
    },
    {
      "blockNumber": "0x31a5006",
      "chain": "base",
      "id": "base-native-balance",
      "type": "native_balance",
      "value": "0x0"
    },
    {
      "blockNumber": "0x1e729abb",
      "chain": "arbitrum",
      "id": "arbitrum-native-balance",
      "type": "native_balance",
      "value": "0x0"
    },
    {
      "blockNumber": "0x965919b",
      "chain": "optimism",
      "id": "optimism-native-balance",
      "type": "native_balance",
      "value": "0x0"
    },
    {
      "blockNumber": "0x5a67efe",
      "chain": "polygon",
      "id": "polygon-native-balance",
      "type": "native_balance",
      "value": "0x0"
    }
  ],
  "snapshotBlocks": {
    "arbitrum": "0x1e729abb",
    "base": "0x31a5006",
    "ethereum": "0x18e456e",
    "optimism": "0x965919b",
    "polygon": "0x5a67efe"
  },
  "verification": "each result is a successful JSON-RPC response"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.1.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://evmstate.com/v1/state-batch/50' \
  -H 'content-type: application/json' \
  --data-raw '{"checks":[{"address":"0x0000000000000000000000000000000000000000","chain":"ethereum","id":"ethereum-native-balance","type":"native_balance"},{"address":"0x0000000000000000000000000000000000000000","chain":"base","id":"base-native-balance","type":"native_balance"},{"address":"0x0000000000000000000000000000000000000000","chain":"arbitrum","id":"arbitrum-native-balance","type":"native_balance"},{"address":"0x0000000000000000000000000000000000000000","chain":"optimism","id":"optimism-native-balance","type":"native_balance"},{"address":"0x0000000000000000000000000000000000000000","chain":"polygon","id":"polygon-native-balance","type":"native_balance"}],"requestId":"12345678-1234-4234-9234-123456789abc"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://evmstate.com/v1/state-batch/50' \
  -H 'content-type: application/json' \
  --data-raw '{"checks":[{"address":"0x0000000000000000000000000000000000000000","chain":"ethereum","id":"ethereum-native-balance","type":"native_balance"},{"address":"0x0000000000000000000000000000000000000000","chain":"base","id":"base-native-balance","type":"native_balance"},{"address":"0x0000000000000000000000000000000000000000","chain":"arbitrum","id":"arbitrum-native-balance","type":"native_balance"},{"address":"0x0000000000000000000000000000000000000000","chain":"optimism","id":"optimism-native-balance","type":"native_balance"},{"address":"0x0000000000000000000000000000000000000000","chain":"polygon","id":"polygon-native-balance","type":"native_balance"}],"requestId":"12345678-1234-4234-9234-123456789abc"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.1 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.1" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.1 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fevmstate.com%2Fv1%2Fstate-batch%2F50&method=POST
const res = await pay("https://evmstate.com/v1/state-batch/50", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "checks": [
      {
        "address": "0x0000000000000000000000000000000000000000",
        "chain": "ethereum",
        "id": "ethereum-native-balance",
        "type": "native_balance"
      },
      {
        "address": "0x0000000000000000000000000000000000000000",
        "chain": "base",
        "id": "base-native-balance",
        "type": "native_balance"
      },
      {
        "address": "0x0000000000000000000000000000000000000000",
        "chain": "arbitrum",
        "id": "arbitrum-native-balance",
        "type": "native_balance"
      },
      {
        "address": "0x0000000000000000000000000000000000000000",
        "chain": "optimism",
        "id": "optimism-native-balance",
        "type": "native_balance"
      },
      {
        "address": "0x0000000000000000000000000000000000000000",
        "chain": "polygon",
        "id": "polygon-native-balance",
        "type": "native_balance"
      }
    ],
    "requestId": "12345678-1234-4234-9234-123456789abc"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.1 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.1"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://evmstate.com/v1/state-batch/50",
        json={
            "checks": [
                {
                    "address": "0x0000000000000000000000000000000000000000",
                    "chain": "ethereum",
                    "id": "ethereum-native-balance",
                    "type": "native_balance",
                },
                {
                    "address": "0x0000000000000000000000000000000000000000",
                    "chain": "base",
                    "id": "base-native-balance",
                    "type": "native_balance",
                },
                {
                    "address": "0x0000000000000000000000000000000000000000",
                    "chain": "arbitrum",
                    "id": "arbitrum-native-balance",
                    "type": "native_balance",
                },
                {
                    "address": "0x0000000000000000000000000000000000000000",
                    "chain": "optimism",
                    "id": "optimism-native-balance",
                    "type": "native_balance",
                },
                {
                    "address": "0x0000000000000000000000000000000000000000",
                    "chain": "polygon",
                    "id": "polygon-native-balance",
                    "type": "native_balance",
                },
            ],
            "requestId": "12345678-1234-4234-9234-123456789abc",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoServed content without asking for payment200430 ms-
5 h agoServed content without asking for payment200431 ms-
10 h agoServed content without asking for payment200465 ms-
16 h agoServed content without asking for payment200434 ms-
22 h agoServed content without asking for payment200455 ms-
Show 10 older checks
28 h agoServed content without asking for payment200836 ms-
33 h agoServed content without asking for payment200762 ms-
39 h agoServed content without asking for payment200418 ms-
44 h agoServed content without asking for payment200421 ms-
2 days agoServed content without asking for payment200363 ms-
2 days agoServed content without asking for payment200444 ms-
3 days agoServed content without asking for payment200590 ms-
3 days agoServed content without asking for payment200523 ms-
3 days agoServed content without asking for payment200486 ms-
3 days agoServed content without asking for payment200504 ms-