# BNB Smart Chain Contract Risk Heuristics

> BNB Smart Chain Contract Risk Heuristics is a paid API for AI agents from automaton-tx-explainer.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Returns heuristic risk flags for a BNB Smart Chain smart contract address, including Sourcify verification status, proxy/admin patterns, owner type, dangerous selectors, and bytecode size.

## Facts

- Endpoint: GET https://automaton-tx-explainer.vercel.app/v1/bsc/contract-risk?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bnb-smart-chain-contract-risk-heuristics-547d146e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BtDb6SWm7kcJhPXSa5NHN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bnb-smart-chain-contract-risk-heuristics-547d146e
```

Example prompt: Can you check the risk flags for this BNB Smart Chain contract — 0x4fabb145d64652a948d72533023f6e7a623c7c53 — I want to know if it's verified, whether it has mint or blacklist functions, and if it's an upgradeable proxy?

## When to prefer this

Use this endpoint when you need a fast, cheap heuristic risk snapshot of a BNB Smart Chain contract specifically — especially to check for dangerous capabilities (mint, pause, blacklist) or proxy upgradeability before interacting with a token or DeFi protocol. Prefer this over manual block explorer browsing when you need automated, structured risk signals. Choose the Ethereum or Base variants for those chains instead.

## Known failure modes

- Invalid or non-checksummed address format returns a 400 validation error
- Address is an EOA (not a contract) — flags may be absent or minimal
- Contract not deployed on BNB Smart Chain returns an empty or error response
- Sourcify verification data temporarily unavailable causes partial results
- RPC or upstream node downtime causes 502/503 errors
- Unverified contract with complex proxy may yield incomplete proxy detection

## How this service works

Heuristic risk flags for a BNB Smart Chain contract from free public data: Sourcify verification, upgradeable proxy + admin, owner type, mint/pause/blacklist/fee selectors, bytecode size. Not an audit or financial advice.

## Output

A structured set of heuristic risk flags for the given BNB Smart Chain contract, including: whether the contract is verified on Sourcify, whether it implements an upgradeable proxy pattern and exposes an admin address, the type of owner (EOA, multisig, contract, etc.), presence of mint/pause/blacklist/fee function selectors in the bytecode, and the overall bytecode size. This is a heuristic scan from public on-chain data, not a full security audit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "BNB Smart Chain contract address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bnb-smart-chain-contract-risk-heuristics-547d146e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from automaton-tx-explainer.vercel.app](https://www.zero.xyz/host/automaton-tx-explainer.vercel.app/llms.txt)
