81trust / 100

Payment Authority Snapshot

by Agent Mercantile in Markets & finance

x402 APIPassing, checked 2 h ago

Produce a factual snapshot of current x402 payment authority for one unpaid v2 requirement and one public EVM payer: selected scheme/network/asset/amount/payTo/transfer method, same-block token balance, canonical token-spender allowance when that path applies, and declared recovery-path classification. Does not sign, approve, construct a transaction, judge native gas, or recommend whether to buy.

POST https://api.agentmercantile.com/v1/payment-authority-snapshot

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.agentmercantile.com/v1/payment-authority-snapshot" \
  -H "content-type: application/json" \
  -d '{"method":"POST","payer_address":"0x1111111111111111111111111111111111111111","resource_url":"https://api.agentmercantile.com/v1/url-context"}'
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.agentmercantile.com%2Fv1%2Fpayment-authority-snapshot
const res = await pay("https://api.agentmercantile.com/v1/payment-authority-snapshot", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"method":"POST","payer_address":"0x1111111111111111111111111111111111111111","resource_url":"https://api.agentmercantile.com/v1/url-context"}),
});
console.log(await res.json());

Example input

{
  "method": "POST",
  "payer_address": "0x1111111111111111111111111111111111111111",
  "resource_url": "https://api.agentmercantile.com/v1/url-context"
}

Example output

{
  "machine": "VM10",
  "methodology_version": "payment-authority-snapshot-0.1.0",
  "state": "READY_EXISTING",
  "status": "OK"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402528 ms$0.005
7 h agoPassed402264 ms$0.005