PayPerScreen API

A sanctions, PEP, crypto-wallet, email, IP and link screening API, paid per call over x402: no account or API key needed. Each request pays for itself in USDC (on Base, Polygon, Arbitrum or Solana) at the moment it's made. Teams that screen every day can buy an optional API plan instead: an API key with a bundle of checks at a lower price per check, and bulk screening.

This document is for anyone integrating programmatically, agent or human. If you're a person using the web UI instead, see payperscreen.com/try. For a plain-English, signal-by-signal breakdown of what each check actually does, including what we don't check yet, see payperscreen.com/methodology. Everything in that page is also reflected in the response shapes documented below; neither should ever say more than the other.

Who this is for

This API is built around the assumption that most real callers will be agents, not people clicking a button: a backend process or an autonomous agent that holds its own wallet and can sign a payment without a human in the loop. That's the native use case x402 was designed for, and it's the integration this document covers. See examples/agent-client.mjs for a working, copy-pasteable reference client.

Use it from Claude, Cursor or any MCP client

The PayPerScreen MCP server (payperscreen-mcp, also in the official MCP Registry as io.github.TonytheTiger22/payperscreen) gives an AI assistant these checks as tools: screen_name (all 14 name lists), screen_pep, screen_wallet, check_email, check_ip and check_url, plus free tools for list coverage and sample results. It pays per call over x402 from a wallet you give it, with a spending cap (PAYPERSCREEN_MAX_SPEND, default $1 per session), or uses the key of a plan instead (PAYPERSCREEN_API_KEY=pps_...). Leave out both to use only the free tools.

Claude Code

claude mcp add payperscreen -e PAYPERSCREEN_PRIVATE_KEY=0xYOUR_KEY -- npx -y payperscreen-mcp

Claude Desktop, Cursor and most other clients

{
  "mcpServers": {
    "payperscreen": {
      "command": "npx",
      "args": ["-y", "payperscreen-mcp"],
      "env": { "PAYPERSCREEN_PRIVATE_KEY": "0xYOUR_KEY", "PAYPERSCREEN_MAX_SPEND": "1.00" }
    }
  }
}

Use a dedicated wallet with a few dollars of USDC on Base, Polygon or Arbitrum, not your main one: the key sits in your client's config. No ETH or gas needed. Full settings: the package README.

Use it in a Coinbase AgentKit agent

Agents built with Coinbase AgentKit get PayPerScreen as seven actions (screen_name, screen_pep, screen_wallet, check_email, check_ip, check_url and the free screening_lists_coverage). Each check is paid from the agent's own wallet in USDC, with a per-check and a total spending cap, or comes from a plan when you pass its key (apiKey).

npm install payperscreen-agentkit @coinbase/agentkit
import { AgentKit } from "@coinbase/agentkit";
import { payperscreenActionProvider } from "payperscreen-agentkit";

const agentkit = await AgentKit.from({
  walletProvider,   // any EVM wallet provider with USDC on Base
  actionProviders: [payperscreenActionProvider({ maxPriceUsd: 0.05, maxSpendUsd: 1 })],
});

Only USDC payments are signed, and a price above maxPriceUsd is refused before anything is signed. Full settings: the package README.

Base URL

https://api.payperscreen.com

The API runs on its own subdomain of payperscreen.com. GET / on it is free and returns a short index (operator, docs, receiving address, prices).

How payment works

No API key, no signup. Authentication is payment: every request is authorized by a signed payment, checked per call. PayPerScreen uses x402 version 2.

  1. You call an endpoint with no payment attached.
  2. The server answers 402 Payment Required. The PAYMENT-REQUIRED response header (base64-encoded JSON) lists the payments it accepts: scheme (exact), asset (USDC), amount and the address to pay, once per network: Base (eip155:8453), Polygon (eip155:137) and Arbitrum (eip155:42161). Your client pays with whichever it supports.
  3. Your client signs an EIP-3009 transferWithAuthorization for that amount: a gasless, off-chain signature, valid for 5 minutes. You never pay gas; the facilitator that settles the payment does.
  4. Your client repeats the same request with the signed payment in a PAYMENT-SIGNATURE header. (This is x402 v2; v1 clients that send X-PAYMENT need upgrading.)
  5. The server checks the payment, runs the check, and settles the payment only if the check succeeded. The result comes back as 200, with the receipt in a PAYMENT-RESPONSE header.

If you use an x402 client library (the @x402/fetch package in the reference client, or any other), steps 2 to 4 happen automatically: you call the URL and the library pays.

You only pay for answers. Payment settles only when the response is a success. Bad input (a missing name, an invalid email or IP address) gets a 400 with what's missing and an example request; the signed payment is never settled, so nothing is charged.

Wallet requirements: real USDC on Base, Polygon, Arbitrum or Solana. No gas token (ETH or SOL) needed: you only sign, you never submit a transaction yourself. For an agent, use a dedicated wallet holding only what it needs.

What the responses look like

Step 2, the 402. Decoded PAYMENT-REQUIRED header for /screen (one entry per network; Polygon and Arbitrum shortened here):

{
  "x402Version": 2,
  "error": "Payment required",
  "resource": {
    "url": "https://api.payperscreen.com/screen?name=Viktor+Petrov",
    "description": "Screen a person or company name against 14 government sanctions and export-control lists...",
    "mimeType": "application/json"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "20000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0xA816343b4F88742FAEF03F51eC23EeE1367C6f76",
      "maxTimeoutSeconds": 300,
      "extra": { "name": "USD Coin", "version": "2" }
    },
    { "scheme": "exact", "network": "eip155:137", "amount": "20000", "...": "..." },
    { "scheme": "exact", "network": "eip155:42161", "amount": "20000", "...": "..." }
  ]
}

amount is in USDC base units (6 decimals): 20000 is $0.02. asset is the USDC contract on that network, and payTo is where the payment goes. Check the amount is what you expect before signing.

Step 4, the signed payment. Your client sends it in the PAYMENT-SIGNATURE header (base64-encoded JSON): the chosen accepts entry, plus an authorization (from your wallet, to payTo, value 20000, a validity window and a one-time nonce) and its signature. It authorizes exactly that transfer, once, for 5 minutes; nothing moves until we settle it.

Step 5, the result. 200 OK with the check result as the JSON body (see each endpoint below), and the decoded PAYMENT-RESPONSE header as your receipt:

{
  "success": true,
  "transaction": "0x5f1c...e9a2",
  "network": "eip155:8453",
  "payer": "0xYourWallet..."
}

transaction is the on-chain USDC transfer, viewable on Basescan (or Polygonscan / Arbiscan). Keep it with your own record of the check.

In a browser, a paid URL shows a short page explaining the endpoint and its price instead of the raw 402. Programs get the standard 402.

See it yourself. examples/x402-walkthrough.mjs prints each of these steps for a real call (free for step 2 only, 2 cents for the full flow); see the Quickstart below.

Discovery

Agents and directories can find the endpoints and their prices without calling them:

What you can rely on

If a payment doesn't go through

If a payment is refused you get another 402; the error field in its decoded PAYMENT-REQUIRED header says why. Nothing is charged.

error (or response) Usual cause
invalid_exact_evm_insufficient_balance Not enough USDC on the network you signed for.
invalid_exact_evm_payload_authorization_valid_before The signature expired: more than 5 minutes between the 402 and the retry. Sign again.
invalid_exact_evm_nonce_already_used The same signed payment was sent twice. Each call needs a new signature.
..._value_mismatch, ..._recipient_mismatch, ..._network_mismatch The payment doesn't match the terms. Use the amount, payTo, network and asset from the 402 as they are.
400 Missing or invalid input, returned before any payment is requested. The body says what's needed and gives an example.
401 The Authorization or X-API-Key header isn't a PayPerScreen key. Fix it, or leave it out and pay with x402.
5xx Our side. The payment isn't settled on an error, so you weren't charged. Retry shortly.

Endpoints

GET /screen: $0.02

Fuzzy name match against the lists we currently carry: OFAC SDN, UN, EU, UK, Canada, Switzerland and Australia, plus the US Consolidated Screening List, where loaded (see "What we check" below; listsChecked in every response names exactly what was checked).

Query parameters

Param Required Notes
name yes Full name to screen
dob no YYYY-MM-DD if known
country no Nationality, free text
type no Individual or Entity (default: Individual)
threshold no Minimum match score, 0.3 to 1 (default 0.4). Higher means fewer, closer matches. We recommend 0.4 for onboarding and payouts; 0.3 to catch more spelling variants (more to review); 0.7 for very close names only (may miss variants); 1 for exact names only, no fuzzy matching (same words, ignoring case, punctuation and word order)
limit no Matches per list, 1 to 10 (default 1)

Response

{
  "subject": { "name": "...", "dob": null, "country": null, "type": "Individual" },
  "listsChecked": ["OFAC SDN", "UN Consolidated", "EU Consolidated", "UK Sanctions List"],
  "listVersions": [
    { "list": "OFAC SDN", "version": "2026-10-09", "refreshedAt": "2026-10-11T17:33:10.414Z" }
  ],
  "screenedAt": "2026-10-03T12:40:00.000Z",
  "settings": { "threshold": 0.4, "limit": 1 },
  "potentialMatch": true,
  "hitCount": 1,
  "listsWithHits": 1,
  "hits": [{
    "list": "OFAC SDN", "score": 0.87, "name": "...", "id": "12345",
    "type": "Individual", "programs": ["RUSSIA-EO14024"],
    "matchedOn": "alias \"...\"", "aliases": ["...", "..."],
    "comparison": [
      { "field": "Date of birth", "subject": "1965-01-22", "listed": "22 Jan 1965", "status": "match", "note": "exact match" },
      { "field": "Nationality", "subject": "Russia", "listed": "Russian Federation", "status": "match", "note": "match" },
      { "field": "Entity type", "subject": "Individual", "listed": "Individual", "status": "match", "note": "exact match" }
    ]
  }],
  "note": "Possible matches for review, not a legal determination. ..."
}

listVersions gives, per list, the publisher's own publication date (version) and when we last downloaded it (refreshedAt). Keep it with your record of the check: it shows exactly which edition of each list was used.

hits holds up to limit matches per list (one by default) scoring at least threshold, strongest first. Each gives the listed name, the list's own record ID (id), entity type, sanctions programmes, what matched (the primary name or a named alias), up to ten aliases, and a comparison of the dob, country and type you sent against the listed record (match, partial, differs, or unknown when either side has no data). Send dob and country to get the most out of it: it's the quickest way to rule out a namesake. hitCount is the number of matches, listsWithHits the number of lists with at least one.

Comparison status values

Each field in a hit's comparison has a status, one of four values. This is deliberate, not a boolean:

status Meaning
match Fields agree
differs Fields disagree
partial Partial agreement (e.g. year-only DOB matches the year)
unknown Not enough data on one side to compare, not a match or a non-match

GET /screen-address: $0.02

Exact-match lookup against three lists, each reported separately:

  1. OFAC's sanctioned digital-currency addresses (sanctioned, matches).
  2. Stablecoin freezes (frozenByIssuer): wallets a stablecoin issuer has frozen, refreshed daily. frozenByIssuer.coverage states exactly which tokens and chains were checked. USDT sent to a frozen wallet can't be moved. Not a sanctions designation.
  3. Known hack and exploit proceeds (hackFunds): a curated list of addresses publicly identified as attacker-controlled or holding stolen funds, from public sources. Every match includes the incident, date, attribution and a source link. A hit here is not a sanctions designation.

This is a different kind of check from /screen: exact string match, not fuzzy. A sanctions match names the listed party (listedParty) and its SDN number (sdnUid) as OFAC records them.

Query parameters

Param Required Notes
address yes Any supported chain's wallet address

Response

{
  "address": "...",
  "screenedAt": "2026-10-03T12:40:00.000Z",
  "listVersions": [{ "list": "OFAC SDN digital currency addresses", "version": "2026-10-09", "refreshedAt": "..." }, "..."],
  "sanctioned": true,
  "matches": [{ "asset": "XBT", "source": "OFAC-SDN-CRYPTO", "listedParty": "EXAMPLE LISTED PARTY", "sdnUid": "12345" }],
  "source": "OFAC SDN digital currency addresses",
  "note": "Exact address match only. A sanctions match names the listed party (listedParty, sdnUid) as OFAC records it. \"Not sanctioned\" reflects this list only, not a guarantee the address is clean.",
  "frozenByIssuer": {
    "listed": false,
    "matches": [],
    "source": "Tether freeze list, read from the token contracts on-chain",
    "coverage": "USDT on Tron",
    "note": "The stablecoin issuer has frozen this address ... Covers USDT on Tron only; a frozen wallet on another chain won't show here."
  },
  "hackFunds": {
    "listed": true,
    "matches": [{
      "incident": "Bybit", "date": "2025-02-21",
      "attribution": "North Korea (TraderTraitor / Lazarus), per the FBI",
      "role": "holds or held stolen funds (FBI)", "chain": "ethereum",
      "source": "https://www.ic3.gov/psa/2025/psa250226"
    }],
    "source": "Known hack and exploit proceeds (curated, updated 2026-10-11)",
    "note": "Addresses publicly identified ... Not a sanctions designation. Covers direct links to these wallets only, not funds already moved on through other wallets or mixers."
  }
}

The hack list covers direct links only: it flags the wallets named in the sources, not funds that have since moved on through other wallets, bridges or mixers. Tracing those needs a commercial blockchain-analytics provider.

Supported assets: XBT (Bitcoin), ETH, USDT, USDC, TRX, SOL, LTC, BCH, ARB, BSC, ETC, DASH, XMR, ZEC, XVG, BTG, BSV, XRP.

GET /screen-email: $0.02

Several fixed-rule signals combined into one risk level, not a list match.

Signal id Severity Flags when
syntax_mx critical The domain has no mail server
disposable_domain critical A throwaway-mail provider, by name or by its mail server
typosquat critical A look-alike of a major provider, like gmial.com
domain_age minor The domain was registered in the last 30 days
privacy_provider minor A privacy-focused provider's own address (Proton, Tuta, Mailfence and similar)
forwarding_alias minor An alias from Apple Hide My Email, Firefox Relay, DuckDuckGo, SimpleLogin, addy.io and similar
random_local_part minor The part before @ looks machine-generated
mail_auth minor A company domain with neither SPF nor DMARC
free_mail, mx_provider, role_account context Never flag: free or company mail, mail provider, shared team inbox

We don't test whether the exact inbox exists.

Query parameters

Param Required Notes
email yes Email address to check

Response

{
  "ok": true,
  "email": "someone@example.com",
  "riskLevel": "low",
  "redFlag": false,
  "redFlagSignals": [],
  "flagCount": 0,
  "unknownCount": 0,
  "signalsChecked": 11,
  "signals": [ { "id": "disposable_domain", "label": "Disposable email provider", "severity": "critical", "status": "pass", "detail": "..." } ],
  "note": "..."
}

riskLevel is low, medium, or high. A flagged critical signal (disposable provider, no mail server, look-alike domain, etc.) sets redFlag: true and riskLevel: "high" on its own, regardless of how many minor signals also flagged. See redFlagSignals for which ones fired. Signals that couldn't be evaluated are unknown, never counted as a pass.

GET /screen-ip: $0.02

Checks a public IPv4 or IPv6 address for: an embargoed country (Iran, North Korea, Syria, Cuba; critical), a heavily sanctioned country (Russia, Belarus, Venezuela, Myanmar; minor), a botnet control server (critical), a Tor exit node (critical, IPv4), an anonymous or compromised proxy (critical) and a VPN (minor), and a cloud or hosting network rather than a home or mobile connection (minor). The response also includes country (code, name), network (asn, organisation), hostingProvider and vpnOperator. Location is approximate and hidden by VPNs. Location and network data: IP Geolocation by DB-IP (CC BY 4.0), returned as attribution; show it wherever you display these results.

Query parameters

Param Required Notes
ip yes A public IPv4 or IPv6 address to check

Response shape matches /screen-email (riskLevel, redFlag, redFlagSignals, signals), with ip in place of email. Private/ reserved addresses (RFC 1918, loopback, etc.) and anything that isn't a valid IP address return 400 with { "ok": false, "error": "..." } (not charged) instead, because no reputation exists to check for a non-routable address.

GET /screen-url: $0.02

Is this link safe to open? For an agent that reads email, browses or pays invoices, before it follows a link. We never visit the page or follow redirects, so checking a link can't trigger anything on it.

Signal Severity What it means
google_web_risk critical On Google Web Risk's lists of suspected phishing, malware or unwanted-software sites (the commercial version of the lists Chrome uses). A flagged result carries attribution ("Advisory provided by Google"): show it wherever you show the warning
phishing_list critical The exact link, or the site's own domain, was reported as phishing (Phishing.Database, community-reported, MIT). On shared platforms such as github.io or sites.google.com only the exact page or the tenant counts, never the whole platform
brand_lookalike critical Imitates a well-known brand: a misspelling (paypai.com), look-alike characters (paypa1.com, Cyrillic letters), or the brand's real domain placed in front (paypal.com.secure-login.xyz)
botnet_host critical The address points to a known botnet control server (abuse.ch Feodo Tracker)
userinfo_trick critical An @ in the address: https://paypal.com@evil.example really opens evil.example
brand_in_domain minor A brand name used as a word in someone else's domain (coinbase-support.io)
domain_age minor Domain registered in the last 30 days (RDAP, the registries' own service; the registrable domain, so login.example.co.uk is looked up as example.co.uk)
ip_address_host minor A bare IP address instead of a domain name
international_characters minor Non-Latin characters in the domain (punycode), which can imitate ordinary letters
link_shortener minor A short link (bit.ly and others): the real destination is hidden
no_https minor The link itself says http://
shared_platform context Hosted on a platform where anyone can publish (github.io, pages.dev, sites.google.com…)

Query parameters

Param Required Notes
url yes A link (https://example.com/page) or just a domain (example.com, checked as https). Only http and https

Response matches the other risk checks (riskLevel, redFlag, redFlagSignals, flagCount, unknownCount, signals), plus url (normalised), host, domain (registrable domain) and context: registeredAt, sharedPlatform, resolvesTo (IP addresses), country and network of the first address. Any critical flag makes the risk high; one or two minor flags medium, three or more high. Signals that couldn't be checked (Google not answering, a registry that doesn't publish dates) are unknown, never a pass. Private or local addresses, other schemes (javascript:, file:) and made-up domain endings return 400 (not charged).

No list catches every harmful site, and a site can turn harmful after it's checked: a low result reflects only the signals listed.

GET /screen-pep: $0.02

Politically exposed person (PEP) check: is this name a current or recent national office-holder anywhere in the world? Covers heads of state and government, ministers, members of parliament (and the European Parliament), senior judges, ambassadors, central bank heads and top military officers who are in office or left less than 12 months ago. Fuzzy name match, including other names and spellings in many languages and scripts (Chinese, Russian, Arabic, Hindi, Korean and more).

Built from official government publications (national parliaments and lists of government leaders) and open public records, refreshed daily to weekly depending on the source. Every hit lists each source that confirms it (sources), and each office links its own source record (positions[].source, positions[].sourceUrl). When a source's licence asks for a credit line, it is in attribution: keep it if you show the result to others.

Honest limits: coverage is strongest for heads of state and government, ministers and national members of parliament, and thinner for lesser-known officials in some countries; family members and close associates are not covered. A "no hit" is not proof someone isn't a PEP.

Query parameters

Param Required Notes
name yes Full name of the person
dob no Date of birth, YYYY-MM-DD, compared with the record
country no Compared with the countries of office
threshold no Minimum match score 0.3 to 1 (default is stricter than /screen: PEP names are often common names)
limit no Maximum hits, 1 to 10, default 5

Response

{
  "subject": { "name": "Emmanuel Macron", "dob": "1977-12-21", "country": "France" },
  "sources": [{ "name": "Wikidata", "url": "https://www.wikidata.org", "licence": "CC0 1.0" }, "..."],
  "people": 78280, "refreshedAt": "...",
  "attribution": ["Source: Central Intelligence Agency, World Leaders."],
  "possiblePep": true,
  "hitCount": 1,
  "hits": [{
    "score": 1, "name": "Emmanuel Macron", "matchedOn": "primary name",
    "status": "current", "statusNote": "Holds this office now, according to the source records",
    "countries": ["France"], "dob": "1977-12-21",
    "positions": [
      { "title": "President of the French Republic", "country": "France", "start": "2017-05-14", "end": null,
        "status": "current", "source": "Wikidata", "sourceUrl": "https://www.wikidata.org/wiki/Q191954" },
      { "title": "President, France", "country": "France", "start": null, "end": null,
        "status": "current", "source": "CIA World Leaders",
        "sourceUrl": "https://www.cia.gov/resources/world-leaders/foreign-governments/france/" }
    ],
    "comparison": [
      { "field": "Date of birth", "subject": "1977-12-21", "listed": "1977-12-21", "status": "match" },
      { "field": "Country", "subject": "France", "listed": "France", "status": "match" }
    ],
    "sources": [
      { "key": "cia-world-leaders", "name": "CIA World Leaders", "url": "https://www.cia.gov/resources/world-leaders/foreign-governments/france/" },
      { "key": "wikidata", "name": "Wikidata", "url": "https://www.wikidata.org/wiki/Q3052772" }
    ],
    "sourceId": "Q3052772", "sourceUrl": "https://www.wikidata.org/wiki/Q3052772", "retrievedAt": "..."
  }]
}

status is current (dated and in office), former (left within the last 12 months) or unconfirmed: the source records the office without dates that confirm it is still held. Treat unconfirmed as "possible PEP, dates unknown" and check it. A birth date known only to the year or month gives partial, not a mismatch. While the list is first loading the route answers 503 and nothing is charged.

API plans: one key, a bundle of checks, bulk screening

For teams that screen every day. A plan gives you an API key with a bundle of checks at a lower price per check, and bulk CSV screening. Paid in USDC over x402, like everything else. No contract, and plans don't renew automatically.

Plan Price, 30 days Checks About per check
Startup $29 USDC 2,000 1.5¢
Starter $99 USDC 10,000 1¢
Growth $299 USDC 50,000 0.6¢

Buy at payperscreen.com/portal with your wallet, or from code by paying GET /plan?plan=startup (or starter, growth) over x402. The response contains your key, shown once. To renew or switch plan, pay GET /plan again with Authorization: Bearer <your key>: the new checks and 30 days are added on top, so renewing early loses nothing. Unused checks lapse if the plan has already ended. GET /plans lists the plans (free).

Running checks with your key

Call any paid endpoint as usual, with your key instead of a payment:

curl https://api.payperscreen.com/screen?name=Viktor%20Petrov \
  -H "Authorization: Bearer pps_..."

X-API-Key: pps_... works too. Each successful check takes one check from your bundle; a failed one (any 4xx or 5xx) is given back. X-Checks-Left on every response says what's left. 401: unknown or replaced key. 402: no active plan. 429: no checks left this period.

Customer API (/v1, with your key)

Call What it does
GET /v1/account Plan, checks left, end date, usage in the last 30 days
POST /v1/key/rotate New key; the old one stops working at once
POST /v1/bulk CSV in, CSV out, up to 5,000 rows

Bulk CSV columns. A header row with name or address per row, plus optional ref (your own customer ID, returned in the results), dob, country, type (Individual or Entity) and threshold (0.3 to 1). A file with a single unlabelled column is read as names, or as wallets if they look like addresses.

Bulk screening

POST /v1/bulk with a CSV of up to 5,000 rows returns a CSV with one row per input: ref, kind, input, result, matches, top_list, top_name, top_score, top_id, dob_check, nationality_check, details. result is POSSIBLE MATCH or NO MATCH for names, and SANCTIONED, FROZEN, HACK (or several) or NO MATCH for wallets. One check per valid row, taken up front; rows that error are given back and marked ERROR. ?threshold= sets the name threshold (default 0.4, like /screen). The lists checked are in the X-Lists-Checked header. Files aren't stored.

Developer referrals

Building PayPerScreen into an agent, app or plugin that other people use? Approved developers earn 25% of every paid check from a new customer wallet their integration brings, for 12 months from that wallet's first tagged call, paid monthly in USDC from $5. Apply and read the terms at payperscreen.com/referrals.

Once approved, tag each request with your payout wallet, as a header or a query parameter. It doesn't change the price or the result:

x-payperscreen-ref: 0xYourWallet
GET https://api.payperscreen.com/screen?name=...&ref=0xYourWallet

Your users must be told you earn a referral fee.

Free endpoints

What we check (current, honest state)

This is deliberate: we'd rather you know the real boundaries of what's checked than have the response imply more confidence than the data supports. If this changes (more lists, scheduled refresh), this document and the API's own response fields will reflect it.

This is a data service, not a compliance service

A result from this API is a match (or non-match) and a field comparison, nothing more. What you do with it (clear it, escalate it, hold a payment, file a report) is entirely your own process and your own regulatory responsibility. We don't make a disposition decision for you.

Quickstart

The quickest way to try it from code is the reference client, examples/agent-client.mjs: download it, run npm install @x402/fetch @x402/core @x402/evm viem, then:

PRIVATE_KEY=0xYourKey node agent-client.mjs screen "Jane Doe"
PRIVATE_KEY=0xYourKey node agent-client.mjs address 123WBUDmSJv4GctdVEz6Qq6z8nXSKrJ4KX

To see every step of the payment (the 402 and its price terms, the signed payment, then the result with its settlement receipt), use examples/x402-walkthrough.mjs. Without a key it stops after the free first step:

node x402-walkthrough.mjs                               # free: shows the 402 and price terms
PRIVATE_KEY=0xYourKey node x402-walkthrough.mjs         # full flow, 2 cents
ENDPOINT=/screen-ip QUERY="ip=8.8.8.8" PRIVATE_KEY=0xYourKey node x402-walkthrough.mjs