# Omnichain Pre-Trade Contract & Token Verifier

> Omnichain Pre-Trade Contract & Token Verifier is a paid API for AI agents from piggybank.loth2023ys.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-23).

Performs pre-trade safety analysis of smart contracts and tokens across 7 blockchains, returning a risk verdict, liquidity metrics, and token authority flags.

## Facts

- Endpoint: GET https://piggybank.loth2023ys.workers.dev/v1/verdict?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omnichain-pre-trade-contract-token-verifier-aee09ba5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DQtfEnjOWCgFprG3fLA9u

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 omnichain-pre-trade-contract-token-verifier-aee09ba5
```

Example prompt: Before I swap $500 worth of VIRTUAL token on Base (chain ID 8453), run a pre-trade safety check on it — I want to see the risk score, whether ownership is renounced, and what the slippage looks like at the $100 and $1000 levels.

## When to prefer this

Choose this endpoint when an AI agent needs a single API call to get a comprehensive pre-trade risk assessment across any of 7 major chains before executing a DeFi swap or investment. It is preferable over chain-specific tools when the target chain is not known in advance, or when you need combined contract bytecode analysis, token authority verification, and live DEX liquidity data in one response. Especially valuable for autonomous trading agents that must make go/no-go decisions without human oversight.

## Known failure modes

- Unknown or unsupported chain ID returns an error response
- Contract address not found on the specified chain returns empty or error verdict
- Token with no DEX liquidity may return zero reserve values
- Rate limiting or payment failure via x402 protocol returns 402 status
- Malformed contract address format causes request rejection
- Network RPC timeouts for specific chains may delay or fail the response

## How this service works

7-chain pre-trade smart contract bytecode, SPL/Token-2022 authority & multi-DEX liquidity risk oracle across Base (8453), Solana, Ethereum (1), Arbitrum (42161), Optimism (10), Polygon (137), and BNB Smart Chain (56). Instant x402 v2 settlement in Base USDC or BSC USDC.

## Output

Returns a JSON object containing: a verdict string (e.g. SAFE_TO_EXECUTE), an integer risk score (0-10), the chain name and chain ID, token metadata (symbol, decimals, ownershipRenounced), liquidity stats (totalReserveUsd, slippage at $100 and $1000 trade sizes), and an array of risk flags. Enables an agent to make a go/no-go trading decision before executing any on-chain swap.

## Request schema (JSON Schema)

```json
{
 "input": {
  "type": "object",
  "properties": {
   "address": {
    "type": "string",
    "description": "Target 0x EVM token/contract address OR Base58 Solana mint address."
   },
   "chain": {
    "type": "string",
    "default": "auto",
    "description": "Target network: auto (default), base (8453), solana, bsc (56), ethereum (1), arbitrum (42161), optimism (10), or polygon (137)."
   },
   "ref": {
    "type": "string",
    "description": "Optional 0x referrer address for automatic 20% CREATE2 vault revenue split on Base (8453) or BSC (56)."
   }
  },
  "required": [
   "address"
  ]
 },
 "output": {
  "type": "object"
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "Base",
  "flags": [],
  "token": {
   "symbol": "VIRTUAL",
   "decimals": 18,
   "ownershipRenounced": true
  },
  "chainId": 8453,
  "verdict": "SAFE_TO_EXECUTE",
  "liquidity": {
   "totalReserveUsd": 1842500.5,
   "slippage100UsdPct": 0.01,
   "slippage1000UsdPct": 0.09
  },
  "riskScore": 8
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omnichain-pre-trade-contract-token-verifier-aee09ba5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from piggybank.loth2023ys.workers.dev](https://www.zero.xyz/host/piggybank.loth2023ys.workers.dev/llms.txt)
