EAS attestations
POST /api/eas-attestationsList EAS (Ethereum Attestation Service) attestations for an address as recipient, attester, or either, on mainnet/Base/Optimism/Arbitrum/Sepolia. Send POST /api/eas-attestations with the required field address and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with address, network, role, count, attestations and 1 more.
Returns attestation id, attester, recipient, schema id, revocable/revoked flags, timestamp, and decoded data JSON. Use to verify Gitcoin Passport stamps, Coinbase verifications, KYC attestations, or any other on-chain claim about an address.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | yes | Ethereum address (0x-prefixed 40-hex). Also accepted as addr, wallet, account. |
network | string | no | EAS network: mainnet, base, optimism, arbitrum, sepolia (default mainnet). |
role | string | no | Filter to attestations where the address is the recipient, attester, or either (default recipient). |
limit | number | no | Max attestations to return (1-100, default 20). |
Example request
curl -i -X POST https://agent402.tools/api/eas-attestations \
-H "Content-Type: application/json" \
-d '{"address":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045","network":"mainnet","limit":5}'
Without payment this returns HTTP 402 Payment Required with the exact price for eas-attestations; any x402 v2 or MPP client pays it and retries.
Example response
{
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"network": "mainnet",
"role": "recipient",
"count": 1,
"attestations": [
{
"id": "0xabc...",
"attester": "0xdef...",
"recipient": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"schemaId": "0x123...",
"revocable": true,
"revoked": false,
"timestamp": 1751234567,
"decodedData": "[{\"name\":\"verified\",\"type\":\"bool\",\"value\":{\"value\":true}}]"
}
],
"source": "easscan"
}
| Field | Type | Always present | In the example |
|---|---|---|---|
address | string | yes | 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 |
network | string | yes | mainnet |
role | string | yes | recipient |
count | number | yes | 1 |
attestations | array of objects | yes | 1 item in the example |
source | string | yes | easscan |
From an MCP client
catalog.call {
"slug": "eas-attestations",
"params": {
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"network": "mainnet",
"limit": 5
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for eas-attestations; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
addressis required. An input the tool rejects returns an HTTP 4xx whose body carrieserror,tool,expected,requiredandexample, so the caller can correct it.- A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
GETorHEADto /api/eas-attestations returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/eas-attestations", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"network": "mainnet",
"limit": 5
}),
});
Related tools
Farcaster by Ethereum address
POST /api/farcaster-by-addressReverse-lookup an Ethereum address to its Farcaster account (via verified address). Returns FID, username, display name,…
Verified contract source (Sourcify)
POST /api/contract-sourceFetch the verified Solidity source files and compiler metadata for a contract address from Sourcify's open verification …
ENS bulk reverse resolver
POST /api/ens-bulk-resolveReverse-resolve a batch of Ethereum addresses to ENS primary names + avatar URLs (up to 50 per call). Returns one row pe…
Farcaster profile
POST /api/farcaster-profileLookup a Farcaster profile by username or FID. Returns FID, username, display name, bio, profile picture URL, follower/f…
Known-address label lookup
POST /api/address-labelLabel a known EVM address from a curated, committed dataset: major stablecoin + token contracts (the USDC and USDG contr…
Wallet token transfers (filtered)
POST /api/asset-transfersRecent token transfers for a wallet on Base, Ethereum and other EVM chains, newest first. Filtered transfer log for an E…