# Strale Web3 Pre-Trade Security Check

> Strale Web3 Pre-Trade Security Check is a paid API for AI agents from api.strale.io, paid per call via x402, $0.1296/call, status unknown (last checked 2026-09-15).

Performs pre-trade due diligence on a crypto token by aggregating security analysis, TVL data, and market trust signals before executing a DeFi trade

## Facts

- Endpoint: POST https://api.strale.io/x402/solutions/web3-pre-trade
- Price: $0.1296/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-web3-pre-trade-security-check-97ac2433
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w6qa5DBrOJ86zc0mR28BM

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 strale-web3-pre-trade-security-check-97ac2433 -d '<json body>'
```

Example prompt: Before I swap into AAVE on Ethereum mainnet (chain 1), run a pre-trade security check on it — use CoinGecko ID 'aave', contract address 0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9, and check the 'aave' protocol on DeFi Llama for TVL.

## When to prefer this

Use this endpoint when an AI agent needs to perform pre-trade due diligence on a DeFi token or protocol — specifically when you need a bundled security + TVL + market trust check in one call with an audit trail, rather than querying CoinGecko, DeFi Llama, and a contract scanner separately.

## Known failure modes

- Invalid or unknown token_id returns 404 or empty data
- Unrecognized contract_address may return no security scan results
- DeFi Llama protocol slug mismatch causes TVL lookup to fail
- Unsupported chain_id may result in incomplete contract analysis
- Network timeouts from upstream data providers (CoinGecko, DeFi Llama)

## How this service works

Everything a trading agent needs before placing a trade. Market price, token contract safety, protocol health, deployer wallet risk, market sentiment, and gas costs — all in one call.

## Output

Returns a structured JSON object with security assessment of the token including contract risk flags, TVL data from DeFi Llama, market trust signals from CoinGecko, and an audit trail — giving a pre-trade safety verdict before committing to a DeFi trade.

## Example request

```json
{
 "chain_id": "1",
 "protocol": "aave",
 "token_id": "ethereum",
 "contract_address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain_id": {
   "type": "string",
   "description": "Chain ID, default 1"
  },
  "protocol": {
   "type": "string",
   "description": "DeFi Llama protocol slug for TVL check"
  },
  "token_id": {
   "type": "string",
   "description": "CoinGecko token ID or symbol (e.g., 'ethereum', 'bitcoin')"
  },
  "contract_address": {
   "type": "string",
   "description": "Token contract address for security check"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-web3-pre-trade-security-check-97ac2433/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
