G

Graphadvocate · Onchain X402 Address

by Graphadvocate

POSTBase

$0.01

per call · USD Coin on Base

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.

Endpoint

POST https://graphadvocate.com/onchain-x402/address

4

Calls / 30d

2

Unique payers / 30d

Aug 29

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://graphadvocate.com/onchain-x402/address", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "address": "0x0FF5A6ecef783BBA35463ec2F8403B9B5e9e7C86"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://graphadvocate.com/onchain-x402/address" \
  -H "Content-Type: application/json" \
  -d '{"address":"0x0FF5A6ecef783BBA35463ec2F8403B9B5e9e7C86"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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"
}

Payment details

Pay to0x0ff5a6ecef783bba35463ec2f8403b9b5e9e7c86
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Graphadvocate & similar services