82trust / 100

Balance

by Quartermaster Balance Check in Onchain & crypto

x402 APIPassing, checked 1 h ago

Check ETH and USDC (or any ERC-20) balance of an address on Base — pre-flight funding checks for payments and settlement.

GET https://quartermaster.surewhynot.app/v1/balance

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://quartermaster.surewhynot.app/v1/balance?address=0xc2a36e22ecbf353086cf83e7beea78bc28a64083&token=usdc"
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%2Fquartermaster.surewhynot.app%2Fv1%2Fbalance
const res = await pay("https://quartermaster.surewhynot.app/v1/balance?address=0xc2a36e22ecbf353086cf83e7beea78bc28a64083&token=usdc");
console.log(await res.json());

Example input

{
  "address": "0xc2a36e22ecbf353086cf83e7beea78bc28a64083",
  "token": "usdc"
}

Example output

{
  "address": "0xc2a3...4083",
  "eth": "0.0031",
  "network": "base",
  "token": {
    "address": "0x8335...2913",
    "balance": "12.5",
    "decimals": 6,
    "symbol": "USDC"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed40238 ms$0.001
7 h agoPassed40244 ms$0.001