# B20 Check > Paid, signed legitimacy checks for B20 tokens on Base. One API call returns an EIP-712-signed verdict on retained issuer powers (mint, freeze, seize, pause, admin), imposter detection and observed on-chain issuer activity, pinned to a Base block. $0.01 USDC per call via the x402 payment protocol. No API keys, no accounts, no subscription. B20 is a protocol-native token standard on Base: tokens are created through the B20Factory precompile (Beryl upgrade), hold no readable bytecode at their address, and the issuer can retain live control after launch. Explorer-based due diligence cannot see those powers; B20 Check reads them from the chain and signs the result. Missing or unverifiable data always fails closed (error or not_indexed), never a clean verdict. ## API - [Paid verify endpoint](https://b20check.com/v1/verify/0xb2000000000000000000001fd821494127f35af0): `GET https://b20check.com/v1/verify/{address}` returns the full signed verdict. Unpaid requests get HTTP 402 with an x402 v2 PAYMENT-REQUIRED header (scheme "exact", network eip155:8453, $0.01 in native USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, payTo 0x26B57af5022250F01497F3e19dd537d01d124BA1). Any x402 client pays automatically. - [Free demo endpoint](https://b20check.com/v1/demo/0xb2000000000000000000001fd821494127f35af0): `GET https://b20check.com/v1/demo/{address}` runs the same handler, rate-limited to 20 requests/min per IP. - [Response schema](https://b20check.com/v1/schema): full JSON schema plus a complete example response and the machine-readable attestation verification recipe. - [Public stats](https://b20check.com/v1/stats): tokens indexed, snapshot block, 30-day usage. - [Health check](https://b20check.com/health): liveness, network, chain id. ## Response - `verdict`: ok | caution | danger | not_applicable. not_applicable = the address is not a B20 and not a recognized canonical asset (nothing B20-specific to vouch for); do not read it as "safe". `isB20`: true only for a factory-native B20 token. `dataSource`: indexed | live | not_indexed. - `issuerPowers`: canMint, canBurn, canPause, canFreeze, canSeize, adminActive, supplyCap, transferRestrictions. - `flags`: 15 structured risk flags across four groups: issuer powers (ADMIN_ACTIVE, CAN_PAUSE, CAN_SEIZE, FREEZE_ACTIVE, TRANSFER_RESTRICTED, UNCAPPED_MINT), identity (CANONICAL_ASSET, COPYCAT_NON_NATIVE, NAME_IMPOSTER, SYMBOL_LOOKALIKE, SYMBOL_UNREADABLE), activity (FRESH_CREATOR, VIA_LAUNCHER, ZERO_ACTIVITY), freshness (NOT_INDEXED). - `attestation`: EIP-712 signature binding this exact response, pinned to a Base block, ~10 minute TTL. Signer: 0x1388d1e3751512955A53C7c2795Eaf8a3B029e6A. - Verify (recovering the signer alone is NOT enough; you must also recompute the hash from the payload, or a tampered body could keep a valid signature): 1. payload = the response object with the `attestation` field removed. 2. canonicalPayload = payload serialized with object keys sorted ascending recursively, no insignificant whitespace, and UTF-8 with NO unicode escaping of non-ASCII characters (Python: json.dumps(payload, sort_keys=True, ensure_ascii=False, separators=(',', ':')); JS JSON.stringify already does this after sorting keys). Impostor tokens often carry non-ASCII homoglyph names, so an encoder that \u-escapes them (Python's default ensure_ascii=True) computes a different hash and falsely reports "tampered". A cross-language test vector (input + expected payloadHash) is at /v1/schema under x-attestationVerification.testVector. 3. payloadHash = keccak256(utf8Bytes(canonicalPayload)). 4. message = { token: address, isB20, verdict: {ok:0,caution:1,danger:2,not_applicable:3}[verdict], payloadHash, pinnedBlock: attestation.pinnedBlock, issuedAt: attestation.issuedAt, expiresAt: attestation.expiresAt }. 5. EIP-712 domain = { name: "B20 Check Attestation", version: "1", chainId: 8453 (mainnet) or 84532 (sepolia), verifyingContract: the token address (per-token replay separation, NOT a service contract) }. 6. types = { B20Attestation: [ {token,address},{isB20,bool},{verdict,uint8},{payloadHash,bytes32},{pinnedBlock,uint64},{issuedAt,uint64},{expiresAt,uint64} ] }, primaryType "B20Attestation". 7. attestationId = hashTypedData(domain, types, message); it MUST equal attestation.attestationId. Recover the signer from (attestationId, attestation.signature); it MUST equal the published signer. If either fails, the body was altered in transit. 8. Freshness: check now (unix seconds) < attestation.expiresAt. Steps 1-7 prove authenticity, not currency; a genuine but expired attestation still passes them and the issuer's powers may have changed since (TTL ~10 min). If expired, refetch. The same recipe (with the test vector) is served machine-readably at /v1/schema under `x-attestationVerification`. ## MCP (AI assistants) - [Remote MCP connector](https://b20check.com/mcp): `POST https://b20check.com/mcp` (Streamable HTTP, stateless). Tools: `verify_b20_token` (signed verdict for an address) and `b20_stats`. Free, shares the demo rate limit. Add the URL as a connector in Claude (Settings, Connectors) or ChatGPT (custom MCP connector) and ask in plain language whether a B20 token is safe. ## Discovery - [Landing page](https://b20check.com/): human-facing overview with a live demo console. - [CDP x402 Bazaar](https://docs.cdp.coinbase.com/x402/docs/welcome): B20 Check is listed in the Coinbase Developer Platform x402 discovery catalog as "B20 Check", so x402-capable agents can find and pay it autonomously. - Canonical origin: https://b20check.com (the fly.dev host is a legacy mirror). ## Methodology and openness - [Methodology](https://b20check.com/methodology): how every flag and verdict is derived: the facts read from the chain, each flag's exact trigger and severity, which rules are deterministic chain reads vs heuristics (only two heuristics exist), the verdict roll-up, and the fail-closed behavior. - [Flag source, served verbatim](https://b20check.com/source/analyzer.ts): the exact TypeScript source of the flag/verdict logic compiled into the running service. Companion identity tables and matching functions: https://b20check.com/source/knownAssets.ts - [Block-pinned test set](https://b20check.com/testset.json): real mainnet tokens with recorded facts at a pinned Base block plus expected flags and verdict; the service's own test suite executes this exact JSON on every build, so published expectations cannot drift from the code. ## When to use it Call B20 Check before an agent or a person buys, holds, accepts or prices any token on Base whose address starts with 0xb20, or any token that might imitate one. It answers: is this token actually B20-native, is the name or symbol an imposter, and what can the issuer still do to holders right now.