Route and execute · Route Execute

by Route and execute

POSTBaseSolanaArbitrumPolygonMonadAvalancheeip155:1329OptimismFraxtaleip155:42220stellar:pubnetalgorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=

$0.01

per call · USD Coin on Base

Describe a task in plain language (or name a tool slug) and the Smart Order Router resolves the best-matching tool across this catalog and the open x402/MPP seller index, then runs it in the same call and returns the result with a receipt. Flat price covers any tool listed at $0.005 or less. Use it when an agent wants one paid request that both finds and executes the right capability.

Endpoint

POST https://agent402.tools/api/route/execute

61

Calls / 30d

1

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://agent402.tools/api/route/execute", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "params": {
      "algo": "sha256",
      "text": "agent402"
    },
    "slug": "hash"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent402.tools/api/route/execute" \
  -H "Content-Type: application/json" \
  -d '{"params":{"algo":"sha256","text":"agent402"},"slug":"hash"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "receipt": {
    "callRef": "sha256:…  (recomputable: sha256 of {\"nonce\":<payment authorization nonce>,\"slug\":…,\"ts\":…} - null on nonce-less calls)",
    "paidUsd": 0.01,
    "resolvedBy": "slug",
    "route": "POST /api/hash",
    "routingFeeUsd": 0.009,
    "seller": "internal",
    "slug": "hash",
    "ts": "2026-07-10T00:00:00.000Z",
    "underlyingPriceUsd": 0.001
  },
  "result": {
    "algo": "sha256",
    "base64": "…",
    "hex": "…"
  }
}

Payment details

Pay to0x77065d81e18ad403bcd6e9a0616b288e16744121
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon, Monad, Avalanche, eip155:1329, Optimism, Fraxtal, eip155:42220, stellar:pubnet, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
Schemesexact, upto

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Route and execute & similar services