80trust / 100
X402 Echo
by x402-payment-test in Markets & finance
x402 APIPassing, checked 4 h ago
Cheapest possible Base-mainnet x402 conformance call: settle $0.001 of USDC and receive payer identity, request echo and receipt. Built for agents testing wallets, Payment-Signature, facilitators and settlement. Try GET /x402-echo/sample.
POST https://x402.agentindex.world/x402-echo
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 220 ms typical, 220 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.agentindex.world/x402-echo" \
-H "content-type: application/json" \
-d '{"message":"hello agent"}'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%2Fx402.agentindex.world%2Fx402-echo
const res = await pay("https://x402.agentindex.world/x402-echo", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"message":"hello agent"}),
});
console.log(await res.json());Example input
{
"message": "hello agent"
}Example output
{
"network": "eip155:8453",
"ok": true,
"payer": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d",
"price_atomic_usdc": "1000",
"price_usdc": 0.001,
"purpose": "x402-mainnet-conformance",
"request": {
"echo": {
"hello": "agent"
},
"method": "POST"
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 220 ms | $0.001 |