80trust / 100

Eth Allowance

by AllTheBot ERC-20 allowance (ETH) in Onchain & crypto

x402 APIPassing, checked 5 h ago

ERC20 allowance and token approval check on Ethereum: how much a spender (Permit2, a router, a bridge) is approved to move from an owner wallet, with unlimited-approval detection.

GET https://api.zkrobotics.fr/x402/eth/allowance

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
58 ms typical, 58 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.zkrobotics.fr/x402/eth/allowance?owner=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&spender=0x000000000022D473030F116dDEE9F6B43aC78BA3&token=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.zkrobotics.fr%2Fx402%2Feth%2Fallowance
const res = await pay("https://api.zkrobotics.fr/x402/eth/allowance?owner=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&spender=0x000000000022D473030F116dDEE9F6B43aC78BA3&token=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48");
console.log(await res.json());

Example input

{
  "owner": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
  "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}

Example output

{
  "allowance": "0",
  "allowance_raw": "0",
  "network": "ethereum",
  "owner": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
  "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "unlimited": false
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed40258 ms$0.003