EVM Token Balance Budget · EVM Token Balance Budget

by EVM Token Balance Budget

POSTBaseSolana

$0.001

per call · USD Coin on Base

EVM Token Balance Budget: checks caller-supplied raw token balance against transfer amount using only bounded caller-supplied values. Call when you need a bounded evm token balance budget result before signing, submitting, replacing, or accepting an EVM/Base transaction assembled from caller-owned data. Returns normalized transaction evidence, calculated budget or shape findings, and a fail-closed preflight status for EVM Token Balance Budget as versioned deterministic JSON. Price: $0.001 USDC…

Endpoint

POST https://api.delx.ai/api/v1/x402/evm-token-balance-budget

4

Calls / 30d

2

Unique payers / 30d

Sep 10

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://api.delx.ai/api/v1/x402/evm-token-balance-budget", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "amount_raw": "1500000",
    "balance_raw": "2500000"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.delx.ai/api/v1/x402/evm-token-balance-budget" \
  -H "Content-Type: application/json" \
  -d '{"amount_raw":"1500000","balance_raw":"2500000"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "evidence": {
    "external_calls": 0,
    "input_sha256": "3fbf7d06140147528cc36197d633495c2ce0bec6c1e9bdeada112e634ce3973c",
    "retained": false
  },
  "operation": "evm_preflight:evm_token_balance_budget",
  "result": {
    "available_raw": "2500000",
    "required_raw": "1500000",
    "shortfall_raw": "0",
    "sufficient": true
  },
  "schema": "delx/util-evm-token-balance-budget/v1",
  "status": "pass"
}

Payment details

Pay to0x9f8bd9875b3e0b632a24a3a7c73f7787175e73a2
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 EVM Token Balance Budget & similar services