Overview
Base URL: https://nbx4.dev. All addresses are 20-byte EVM hex values. Base v1 report IDs have the form nbx4_ plus 64 lowercase hex characters; v3 IDs use nbx4_v3_ plus 64. The report is created before payment and stored in D1. A paid read returns the stored snapshot, not a fresh RPC call.
The Base v1 request flow is POST /v1/prepare → report_id → GET /v1/report?report_id={report_id} → HTTP 402 payment requirements → a compatible x402 client's retry → report JSON. A regular browser does not automatically pay x402.
Multichain v3
Prepare block-pinned observations on 16 EVM mainnets by sending the chain ID and contract address. Payment for a stored report is 0.01 USDC on Base, regardless of the analyzed chain. A failed contract read returns an error rather than a safety verdict. No v3 settlement has been independently verified, and paid delivery remains unverified. The v3 x402 offer identifies the service as nbx4 EVM Mechanism Evidence. Paid JSON includes threat_analysis with explicit mint, pause, blacklist_whitelist, transfer_limits, fees_tax, sell_restrictions, upgrades, lp_removal, and liquidity_change dimensions. Source-matched Solidity declarations and transfer-hook conditions are labelled hints, not confirmed authority or execution; endpoint supply, proxy and approved V2 pool changes are observations only. Sell restrictions remain unknown without stronger evidence. An empty signal set never means safe.
Interpreting mechanism evidence
Each threat_analysis.mechanisms entry has a status of observed_signal or unknown and an evidence array. Matched source syntax is a lexical hint, not proof that transfers or sells are blocked, that an administrator can invoke a function, or that the active proxy implementation was analyzed. A REVIEW severity highlights selected observed endpoint changes, not a honeypot verdict. snapshot_comparison compares endpoint snapshots only; it does not monitor intervening blocks. Missing source matches, pool configurations and trade evidence stay unknown.
POST /v3/prepare
Preparation is enabled for the configured 16-chain set. Send JSON with only chain_id and address. HTTP 201 returns a reference without findings.
curl -i -X POST 'https://nbx4.dev/v3/prepare' -H 'Content-Type: application/json' --data '{"chain_id":8453,"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}'GET /v3/report?report_id={report_id}
Read an existing immutable JSON report through x402. Omitting the query selects one existing public example; a missing report returns 404 before payment. The canonical GET /v3/reports/{id} path remains available. The signed Base USDC transfer does not cryptographically bind the report ID; clients must verify the selected URL and offer before paying.
GET /v3/networks
Lists 16 EVM mainnet identities and conservative configuration status. It is not a live RPC health or payment-settlement guarantee.
Base v1 endpoints
POST /v1/prepare
Prepare a snapshot. Content-Type must be application/json; the body must contain only address. Maximum request body: 1,024 characters. Currently responds with 503 not_active because public preparation is disabled.
curl -i -X POST 'https://nbx4.dev/v1/prepare' -H 'Content-Type: application/json' --data '{"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}'When enabled, HTTP 201 contains report_id, status: "ready" and payment_path. It never contains paid findings. The same address at the same block reuses the stored report unless the block hash conflicts, in which case the service refuses the snapshot.
GET /v1/reports/{report_id}
For a known report, an unpaid request receives HTTP 402 with a Base64-encoded JSON offer in the PAYMENT-REQUIRED response header. It does not disclose findings. A missing ID returns 404 before payment middleware runs. A settled payment returns the immutable report as JSON. One prior paid browser test was independently checked against Base settlement and its matching stored report. This does not verify new report preparation or guarantee future settlement.
GET /v1/report?report_id={report_id}
Discovery-friendly paid read of any stored report. Pass the report_id returned by preparation; a missing or invalid ID returns 404 before payment. Omitting the query parameter reads a public example report for the same 0.01 USDC price, not a report you prepared. The original path-based paid endpoint remains available.
GET /health
Returns {"service":"nbx4","status":"up","payments_ready":true|false}. The flag means the payment middleware is configured. It is not a settlement or business-readiness signal.
GET /logo.svg
Standalone SVG wordmark. The x402 offer advertises the separate square icon at https://nbx4.dev/icon.svg?v=3.
x402 offer
Current offer: x402 version 2, exact scheme, Base Mainnet eip155:8453, USDC asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, and 10,000 atomic units (0.01 USDC) per paid read. The offer includes serviceName: "nbx4", iconUrl and a short description. A client must check the offer before taking any payment action.
Standard exact EVM payment signatures cover transfer terms. The EIP-3009 signature covers the transfer, not the report ID. The request URL selects the delivered report; before settlement the same authorization could be presented for another report with identical price and recipient. Treat this as one report read per successful payment, not a pre-bound purchase of a particular report. A settled nonce cannot be paid again. Never reuse a signature across requests; if settlement is uncertain, check the receipt before retrying.
Base v1 report format
| Field | Meaning |
|---|---|
report_id, report_digest | SHA-256 of canonical report data; the ID includes the digest. |
chain_id, address | Base Mainnet (8453) and submitted contract address. |
block_number, block_hash, observed_at | Pinned observation, checked for a changed hash during the read, with report creation time. |
verdict_label | REVIEW when one of the implemented signals is present; otherwise INDETERMINATE. Neither means safe or malicious. |
summary, top_reasons | One sentence and at most three reasons. Reasons include code, severity, text, unknowns and evidence. |
unknowns, policy_version | Limits of this check and the version of its decision rules. |
code_hash, control.implementation, control.admin, control.beacon, control.owner, control.pending_owner | Bytecode hash and proxy/ownership observations with status, value, and block-bound evidence. A populated slot or owner() result does not establish who can upgrade or what owner powers exist. |
token_metadata | Best-effort ERC-20 name, symbol, decimals, and total supply calls. Unknown or missing fields are not a guarantee of safety. |
source_verification | Best-effort Sourcify runtime match checked against the pinned bytecode. verified means matching code bytes and provider runtime-match evidence, not verified privileges, token safety, or continuous source history. Provider gaps are unknown or unavailable. |
snapshot_comparison | Changes between the current and the prior stored snapshot at a lower block for the same contract. Comparison covers endpoint snapshots only, not continuous monitoring or intermediate changes. Legacy reports may lack these new fields. |
card.svg | Shareable SVG embedded as a string in the paid JSON response. |
The current analyzer writes the natural-language summary and top_reasons.text fields in Polish. Stable field names and verdict codes are in English.
Errors
| Status | Typical error code | What it means |
|---|---|---|
| 400 / 413 / 415 | invalid_address, invalid_json, body_too_large, json_required | The preparation request is malformed or too large. |
| 402 | Payment requirements in header | Known report, no valid x402 payment supplied; no findings returned. |
| 404 / 405 | not_found, method_not_allowed | Unknown report or unsupported report method. |
| 422 / 429 | not_contract, rate_limited, daily_quota_reached | No contract code at the observed block, or request limit reached. |
| 502 / 503 | analysis_unavailable, not_active, storage_unavailable, snapshot_conflict | Upstream, activation or integrity check prevented a safe response. |
Error bodies generated by nbx4 have the shape {"error":"code"}. The x402 middleware may return its own payment response shape.