# x402 Ethereum Tx Check (Pre-Sign Safety Check)

> x402 Ethereum Tx Check (Pre-Sign Safety Check) is a paid API for AI agents from sim.0xrelay.party, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-13).

Analyzes an unsigned Ethereum transaction or EIP-712 typed data before signing, returning a safety verdict, simulation results, and risk flags.

## Facts

- Endpoint: POST https://sim.0xrelay.party/check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ethereum-tx-check-pre-sign-safety-check-49538327
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a5tPrZtJJaiIm0P4H_MCT

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 x402-ethereum-tx-check-pre-sign-safety-check-49538327 -d '<json body>'
```

Example prompt: Before I sign this transaction to 0xUniswapRouter with calldata 0xabc123... from my wallet 0xMyAddress, run a safety check on it — tell me if it's dangerous, what it'll actually do, and any risk flags I should know about.

## When to prefer this

Use this endpoint when an AI agent or wallet interface needs to protect a user from signing a malicious, risky, or unintended Ethereum transaction before it hits the mempool. Ideal for DeFi agents, wallet copilots, and any flow where user funds are at risk. Prefer this over generic calldata decoders when you need both simulation AND risk scoring in one call. Does not require signup or API keys — pay-per-call via USDC on Base using the x402 protocol.

## Known failure modes

- Missing required 'to' or 'calls' field — returns 400 with validation error
- Invalid address format for 'to' or 'from' — returns parsing error
- Transaction simulation reverts on mainnet fork — returns danger verdict with revert reason
- Malformed calldata that cannot be decoded — returns warn verdict with unknown-calldata flag
- Payment failure via x402 (insufficient USDC balance) — returns 402 Payment Required before processing
- Network timeout when forking mainnet for simulation — returns 503 or timeout error

## How this service works

Pay-per-call Ethereum mainnet tools for agents: simulate a tx, check it before signing, explain a mined tx, broadcast a signed tx privately. USDC on Base via x402. No signup, no API key.

## Output

Returns a JSON object containing: a verdict field (ok, warn, or danger), an array of specific risk flags (e.g. approval to unknown contract, value drain, phishing signature patterns), a human-readable summary string explaining what the transaction does and why it was flagged, and a simulation object showing the expected state changes and gas usage.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "data": {
   "type": "string"
  },
  "from": {
   "type": "string",
   "description": "signer address (required with a tx)"
  },
  "calls": {
   "type": "array",
   "description": "bundle instead of a single tx"
  },
  "value": {
   "type": "string"
  },
  "typedData": {
   "type": "object",
   "description": "EIP-712 typed data the user is asked to sign"
  },
  "authorizationList": {
   "type": "array",
   "description": "EIP-7702 authorizations in the tx"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "flags": "array",
 "summary": "string",
 "verdict": "ok|warn|danger",
 "simulation": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ethereum-tx-check-pre-sign-safety-check-49538327/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sim.0xrelay.party](https://www.zero.xyz/host/sim.0xrelay.party/llms.txt)
