# Sparks RE API — Token Audit (EVM Contract Risk Scanner)

> Sparks RE API — Token Audit (EVM Contract Risk Scanner) is a paid API for AI agents from sparks-re-api.sparksdigital-re.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-29).

Analyzes an EVM smart contract address on Base Mainnet to assess risk level, detect proxy patterns, and identify dangerous capabilities like minting, pausing, or blacklisting.

## Facts

- Endpoint: POST https://sparks-re-api.sparksdigital-re.workers.dev/utilities/token-audit?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sparks-re-api-token-audit-evm-contract-risk-scanner-2ee807a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LwzugHPqAEvULUNxMAnG6

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 sparks-re-api-token-audit-evm-contract-risk-scanner-2ee807a0 -d '<json body>'
```

Example prompt: Can you audit the contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base and tell me if it has any risky capabilities like minting or blacklisting, and whether it's a proxy?

## When to prefer this

Use this endpoint when you need a fast, on-chain risk assessment of a specific EVM token or DeFi contract deployed on Base Mainnet — especially when evaluating whether to interact with or invest in a contract. Prefer this over generic block explorers when you need structured risk scoring, proxy detection, and capability flagging in a single machine-readable response without manually parsing bytecode or ABI.

## Known failure modes

- Invalid or malformed contract address (non-42-char or missing 0x prefix) returns a validation error
- Address is an EOA (externally owned account) rather than a contract — is_contract returns false with no further analysis
- Contract bytecode not accessible or RPC timeout on Base Mainnet returns a network error
- Address exists but has no detectable ABI selectors, resulting in empty detected_capabilities
- Payment of $0.05 USDC not provided or x402 micropayment fails, resulting in 402 Payment Required

## How this service works

AI-powered real estate tools for property normalization, FHA compliance scanning, and investor metrics calculation. Powered by x402 micropayments.

## Output

Returns a JSON object with the contract address, network identifier (eip155:8453 for Base), boolean flags for whether it's a contract and whether it's an EIP-1967 proxy, the implementation address if proxied, bytecode size in bytes, a numeric risk score from 0–100, a human-readable risk verdict (e.g. MODERATE_ADMIN_PRIVILEGES), detected capability flags (has_mint_selector, has_pause_selector, has_blacklist_selector, has_selfdestruct_opcode), and an array of explanatory notes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "contract_address": {
   "type": "string",
   "description": "42-character 0x EVM contract address on Base Mainnet"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "notes": [
   "EIP-1967 upgradeable proxy detected."
  ],
  "network": "eip155:8453",
  "is_contract": true,
  "risk_verdict": "MODERATE_ADMIN_PRIVILEGES",
  "contract_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "is_eip1967_proxy": true,
  "bytecode_size_bytes": 1842,
  "risk_score_0_to_100": 35,
  "detected_capabilities": {
   "has_mint_selector": false,
   "has_pause_selector": false,
   "has_blacklist_selector": false,
   "has_selfdestruct_opcode": false
  },
  "implementation_address": "0x2ce6311ddae708829bc0784c967b7d77d19fd779"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sparks-re-api-token-audit-evm-contract-risk-scanner-2ee807a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sparks-re-api.sparksdigital-re.workers.dev](https://www.zero.xyz/host/sparks-re-api.sparksdigital-re.workers.dev/llms.txt)
