# 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.09/call, status unknown (last checked 2026-10-23).

Returns best DEX pool, total reserve liquidity in USD, and expected trade slippage across 7 blockchains before executing a trade

## Facts

- Endpoint: GET https://piggybank.loth2023ys.workers.dev/v1/liquidity?utm_source=zero.xyz
- Price: $0.09/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-bbe4ba89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RyiPlQr5IuyPboMsarcNp

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-bbe4ba89
```

Example prompt: Before I swap 50,000 USDC for this token at 0xE31c372a7AF875b3B5E0F3713B17ef51556da667 on Base, check the liquidity depth and expected slippage so I know if the pool is safe to trade against.

## When to prefer this

Choose this endpoint when you need pre-trade risk assessment across multiple blockchains simultaneously before executing a swap or liquidity provision. It is most useful when trading on unfamiliar tokens, verifying smart contract safety, or comparing DEX pool quality across chains like Base, Solana, Ethereum, Arbitrum, Optimism, Polygon, and BSC — all in a single call at $0.008 per query.

## Known failure modes

- Token or contract address not found on specified chain — returns empty or null pool data
- Chain ID not supported — request fails with invalid parameter error
- Low liquidity pool returns very high slippage percentage warning
- Smart contract bytecode unverifiable — returns inconclusive verification status
- Network timeout or RPC node unavailability for a given chain causes partial response
- Invalid or malformed contract address returns 400-level error

## 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 with the best pool contract address (bestPool), total liquidity reserves in USD (totalReserveUsd), and expected trade slippage percentage (customTradeSlippagePct) for the queried token/chain combination.

## Request schema (JSON Schema)

```json
{
 "input": {
  "type": "object",
  "required": [
   "address"
  ],
  "properties": {
   "ref": {
    "type": "string",
    "description": "Optional 0x partner wallet for 20% CREATE2 revenue share."
   },
   "chain": {
    "type": "string",
    "default": "auto",
    "description": "Target chain slug or numeric chainId (default: auto)."
   },
   "address": {
    "type": "string",
    "description": "Target 0x EVM token address or Base58 Solana mint address."
   },
   "tradeUsd": {
    "type": "string",
    "default": "500",
    "description": "Simulated USD trade size for slippage impact."
   }
  }
 },
 "output": {
  "type": "object"
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bestPool": "0xE31c372a7AF875b3B5E0F3713B17ef51556da667",
  "totalReserveUsd": 1842500.5,
  "customTradeSlippagePct": 0.05
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omnichain-pre-trade-contract-token-verifier-bbe4ba89/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)
