81trust / 100

X402 Asset Match

by X402 Asset Match in Onchain & crypto

x402 APIPassing, checked 45 min ago

X402 Asset Match: compares a challenge asset identifier with buyer-supported assets using only bounded caller-supplied values. Call when you need a bounded x402 asset match result before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Asset Match as versioned deterministic JSON. Price: $0.001 USDC via x40…

POST https://api.delx.ai/api/v1/x402/x402-asset-match

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.delx.ai/api/v1/x402/x402-asset-match" \
  -H "content-type: application/json" \
  -d '{"asset":"USDC","supported_assets":["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%2Fapi.delx.ai%2Fapi%2Fv1%2Fx402%2Fx402-asset-match
const res = await pay("https://api.delx.ai/api/v1/x402/x402-asset-match", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"asset":"USDC","supported_assets":["USDC"]}),
});
console.log(await res.json());

Example input

{
  "asset": "USDC",
  "supported_assets": [
    "USDC"
  ]
}

Example output

{
  "evidence": {
    "external_calls": 0,
    "input_sha256": "87c9c6183983f222462f4ce259bafbeb4418e6ba18af409b98db69898b5ce097",
    "retained": false
  },
  "operation": "delivery_contract:x402_asset_match",
  "result": {
    "actual": "USDC",
    "matched": true,
    "supported": [
      "USDC"
    ]
  },
  "schema": "delx/util-x402-asset-match/v1",
  "status": "pass"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
45 min agoPassed40213 ms$0.001
6 h agoPassed40210 ms$0.001