# Avalanche C-Chain Contract Risk Heuristics

> Avalanche C-Chain Contract Risk Heuristics is a paid API for AI agents from automaton-tx-explainer.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-20).

Returns heuristic risk flags for an Avalanche C-Chain smart contract address, including Sourcify verification status, proxy/admin configuration, owner type, dangerous function selectors, bytecode size, and copycat token detection.

## Facts

- Endpoint: GET https://automaton-tx-explainer.vercel.app/v1/avalanche/contract-risk?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/avalanche-c-chain-contract-risk-heuristics-75118d0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pdHQ6m3-fCuQbYlh7CkxF

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 avalanche-c-chain-contract-risk-heuristics-75118d0e
```

Example prompt: Can you check the risk flags for this Avalanche C-Chain contract at 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f — is it Sourcify-verified, does it have any mint or blacklist functions, and is it a copycat of a major token?

## When to prefer this

Choose this endpoint when you need quick, heuristic-level risk screening for an Avalanche C-Chain contract without waiting for a full manual audit. It is ideal for pre-interaction due diligence, automated DeFi safety checks, copycat token detection, or flagging suspicious contracts in a portfolio or transaction feed. Prefer it over manual block explorer browsing when you need structured, machine-readable risk signals. It complements (but does not replace) professional audits.

## Known failure modes

- Invalid or malformed contract address (must match ^0x[0-9a-fA-F]{40}$) returns a validation error
- Address is an EOA (externally owned account) rather than a contract — may return empty or error
- Avalanche C-Chain RPC unavailability causing timeout or upstream error
- Contract deployed but with no bytecode (self-destructed) may return incomplete flags
- Rate limiting or payment failure with x402 protocol returns 402 Payment Required

## How this service works

Heuristic risk flags for a Avalanche C-Chain contract from free public data: Sourcify verification, upgradeable proxy + admin, owner type, mint/pause/blacklist/fee selectors, bytecode size, and a flag for copycats of major tokens (USDC, USDT, WETH...) at a non-official address. Not an audit or financial advice.

## Output

A JSON object containing heuristic risk flags for the queried Avalanche C-Chain contract, including: whether the contract is verified on Sourcify, whether it implements an upgradeable proxy pattern and who the admin is, the type of owner (EOA vs multisig vs contract), presence of dangerous function selectors (mint, pause, blacklist, fee), the bytecode size, and a flag indicating if the contract appears to be a copycat of a major token (USDC, USDT, WETH, etc.) deployed at a non-official address.

## 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": "Avalanche C-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/avalanche-c-chain-contract-risk-heuristics-75118d0e/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)
