Skip to main content
Prefixo: https://api.nzochain.com/api/v1
Auth: header X-API-Key
Query opcional: lang=pt ou lang=en
Integração actual = REST. Não existe SDK oficial publicado (@nzochain/sdk / NzochainClient). Exemplos: Quickstart.
A v1 é aditiva face ao /api legado. Produtos novos devem usar v1.

Endpoints e scopes

Scope em falta → 403 { "error": "SCOPE_REQUIRED", "required": "…" }.
Feature fora do plano → 403 PLAN_UPGRADE_REQUIRED.

Wallet risk

network: ethereum | bnb | polygon | arbitrum. Opcionais (DTO partilhado): forceRefresh, includeBlocked, requesterWallet.

Contract risk

Analyze transaction

Simulate

Simulação live exige Tenderly. Sem Tenderly (ou se a chamada live falhar), a API devolve análise estática / degradada. Quotas mensais de simulate: Free 0 · Starter 100 · Growth 2 000 · Business 10 000 · Enterprise por contrato (pilot-grade). Esgotada → 403 SIMULATION_QUOTA.

Threats

Contrato da resposta

Envelope típico:
Mapeamento típico: CRITICAL/HIGH → BLOCK · CAUTION → REVIEW · SAFE → ALLOW.

cURL

JavaScript fetch

Quotas de volume

  • Free: hard cap → 429 RATE_LIMIT
  • Pagos: overage faturado até 3× a quota; depois 429 HARD_CEILING
Ver Overview e Erros. Planos: B2B.