78trust / 100
Onchain X402 Address
by graphadvocate.com in Weather & location
x402 APIPassing, checked 3 h ago
On-chain x402 settlement summary for an address from the decentralized x402 Base subgraph on The Graph Network. POST {address}. Returns lifetime stats as payer + recipient (totalPayments, totalVolume, first/last seen), recent 10 payments each direction, facilitator metadata if applicable, plus indexed_through_block for freshness. Decentralized, verifiable. Distinct from /ask. $0.01 USDC on Base.
POST https://graphadvocate.com/onchain-x402/address
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 331 ms typical, 611 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://graphadvocate.com/onchain-x402/address" \
-H "content-type: application/json" \
-d '{"address":"0x0FF5A6ecef783BBA35463ec2F8403B9B5e9e7C86"}'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%2Fgraphadvocate.com%2Fonchain-x402%2Faddress
const res = await pay("https://graphadvocate.com/onchain-x402/address", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0x0FF5A6ecef783BBA35463ec2F8403B9B5e9e7C86"}),
});
console.log(await res.json());Example input
{
"address": "0x0FF5A6ecef783BBA35463ec2F8403B9B5e9e7C86"
}Example output
{
"address": "0x0ff5a6ecef783bba35463ec2f8403b9b5e9e7c86",
"as_payer": null,
"as_recipient": {
"lastPaymentTimestamp": "1780500000",
"totalPayments": "47",
"totalVolumeDecimal": "0.47"
},
"facilitator": null,
"indexed_through_block": 46514000,
"indexed_through_timestamp": 1780580000,
"indexer_has_errors": false,
"is_in_index": true,
"recent_received": [
{
"amountDecimal": "0.01",
"blockNumber": "46500000",
"from": "0xab…",
"transferMethod": "EIP3009"
}
],
"recent_sent": [],
"source": "graph-network:x402-base"
}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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 272 ms | $0.01 |
| 6 h ago | Passed | 402 | 258 ms | $0.01 |
| 10 h ago | Passed | 402 | 339 ms | $0.01 |
| 13 h ago | Passed | 402 | 328 ms | $0.01 |
| 17 h ago | Passed | 402 | 331 ms | $0.01 |
| 21 h ago | Passed | 402 | 329 ms | $0.01 |
| 24 h ago | Passed | 402 | 547 ms | $0.01 |
| 29 h ago | Passed | 402 | 417 ms | $0.01 |
| 32 h ago | Passed | 402 | 664 ms | $0.01 |
| 35 h ago | Passed | 402 | 254 ms | $0.01 |
| 40 h ago | Passed | 402 | 611 ms | $0.01 |