{"uid":"cap_uV6Kt4sOotE53ScBPL1H5","slug":"countersign-pre-payment-address-check-29692b30","name":"Countersign Pre-Payment Address Check","description":"APEX. Check an address before you pay it. Pass ?payTo=&chain= (base, ethereum, arc, bnb, solana, x1; x402 names like eip155:8453 work) and optionally amount, asset, payer, known (comma list of payees you already pay), or requirement= (the x402 402 body or base64 PAYMENT-REQUIRED header as-is, with chain= the chain you will pay on).","url":"https://apexfaucet.xyz/api/x402/countersign?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["payTo","chain"],"properties":{"asset":{"type":"string","pattern":"^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$","description":"Token contract being paid; checked against the official USDC/USDT/USD1 contract."},"chain":{"enum":["base","ethereum","arc","bnb","solana","x1","eip155:1","eip155:8453","eip155:5042","eip155:56"],"type":"string","description":"The chain you will pay on."},"known":{"type":"string","description":"Comma-separated payees you already pay (up to 50); a lookalike of one is DENY."},"payTo":{"type":"string","pattern":"^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$","description":"The address you are about to pay (0x on EVM chains, base58 on Solana/X1)."},"amount":{"type":"string","pattern":"^[0-9]{1,12}([.][0-9]{1,18})?$","description":"Amount in the asset's units (dollars for a stablecoin)."}}}}},"output":{"type":"object"}}},"responseSchema":{"type":"json","schema":{"type":"object","properties":{"ok":{"type":"boolean"},"data":{"type":"object"},"paid":{"type":"number"}}},"example":{"ok":true,"data":{"ok":true,"asset":{"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","official":"USDC"},"chain":"ethereum","payTo":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","payer":null,"amount":25,"chainId":1,"checkId":"0xcdc78d2f1f1bc1210f1f24d2e7f7dc0e8900f1ee06d7b8c610c12786b7f8c03b","reasons":[{"code":"poisoning_not_indexed","text":"Chain-wide poisoning data exists only for Arc so far; on this chain the lookalik…","severity":"info"}],"summary":"No check found a reason to stop this payment. That is not a guarantee: it means …","verdict":"ALLOW","verdictCode":0},"paid":0.005}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E_IWQOJGCYy_AAh1s0Q4p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a crypto wallet address before sending payment, flagging lookalike/scam addresses and checking asset legitimacy across multiple chains.","exampleAgentPrompt":"Before I send 50 USDC to 0xAbC1234...5678 on Base, can you run a countersign pre-payment check on that address to make sure it's safe and not a lookalike of any address I normally pay?","exampleUseCases":[{"title":"Phishing address lookalike detection","prompt":"I'm about to pay 200 USDC to 0xDeF9876...1234 on Ethereum — can you verify it's not a lookalike of my usual payees 0xAAA111...000 and 0xBBB222...999 before I send?"},{"title":"DeFi protocol payment screening","prompt":"Before my smart contract sends funds to 0x4a2b...c891 on Base using USDC, check that address is clean and the asset contract 0xA0b8...eB48 is the legitimate USDC token."},{"title":"Solana payment safety check","prompt":"I need to pay DRpbCBMxVnDK7maPM5tGv6MvB3v1sRMC6zfAsC3Nkj on Solana — run a safety check on it and tell me if anything looks suspicious before I proceed."}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating whether the address passed all checks, a 'data' object with detailed findings (risk signals, lookalike matches, asset contract validity), and a 'paid' number reflecting the micro-fee charged per call.","failureModes":["Invalid address format returns a 400-style error — address must match 0x EVM hex or base58 Solana format","Unsupported chain value returns a validation error — must be one of: base, ethereum, arc, bnb, solana, x1 or eip155 equivalents","Asset address doesn't match a known stablecoin contract — flagged or denied","Known payees list exceeds 50 entries — truncated or rejected","Payment not received (x402 flow failure) — API returns 402 before executing the check","Malformed amount string (non-numeric or too many decimal places) — schema validation error"],"whenToPreferThis":"Use this endpoint when an AI agent or automated system is about to execute a crypto payment and needs a programmatic pre-flight safety check on the recipient address. It is especially valuable when lookalike-address phishing is a concern, when paying new or unverified counterparties, or when you want to cross-reference against a known-good payees list. It supports multiple major chains (Base, Ethereum, Solana, BNB, Arc, X1) and validates stablecoin asset contracts simultaneously, making it a one-stop pre-payment screen. Prefer this over manual block-explorer lookups when speed and automation are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:31.066Z","isFirstParty":false,"canonicalSlug":"countersign-pre-payment-address-check-29692b30"}