# BlockNotify Transaction Safety Analyzer

> BlockNotify Transaction Safety Analyzer is a paid API for AI agents from x402.blocknotify.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

Simulates an EVM transaction before execution and returns an allow, warn, or block safety decision with detection of approval abuse, suspicious contracts, and failure conditions.

## Facts

- Endpoint: POST https://x402.blocknotify.com/v1/analyze-transaction?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blocknotify-transaction-safety-analyzer-86c513f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yTuj8W1CS3AaALkYBxTWy

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 blocknotify-transaction-safety-analyzer-86c513f6 -d '<json body>'
```

Example prompt: Before I send this transaction — from 0xAbC...123 to the Uniswap router 0x7a25...fE on base with calldata 0xa9059cbb... and value 0x0 — run a safety simulation and tell me whether to allow, warn, or block it.

## When to prefer this

Choose this endpoint when an AI agent or wallet needs a pre-execution safety gate — especially for DeFi interactions, token approvals, or interactions with unknown contracts — where detecting rug pulls, approval exploits, or revert conditions before signing is critical. Prefer it over generic simulation endpoints because it returns a clear actionable allow/warn/block decision with security-specific annotations, not just raw execution traces.

## Known failure modes

- Invalid address format (not a valid 0x EVM address) returns a validation error
- Unsupported chain value outside the allowed enum returns a 400 error
- Malformed or non-hex calldata causes a parsing failure
- Simulation RPC unavailable for the target chain causes a timeout or 503
- Insufficient payment (x402 payment not provided or underpaid) returns a 402 Payment Required
- Value field not parseable as decimal or 0x-prefixed hex returns an error

## How this service works

Transaction safety analysis for EVM wallets and AI agents. Simulates a transaction, detects approval abuse, suspicious contracts, and failure conditions, then returns an allow, warn, or block decision before execution.

## Output

Returns a safety decision of allow, warn, or block along with detailed risk signals including detected approval abuse patterns, suspicious contract indicators, simulation success/failure status, and the reasons behind the decision — all before the transaction is broadcast to the network.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$",
   "description": "Destination address (contract or EOA)."
  },
  "data": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]*$",
   "description": "Calldata as a 0x-prefixed hex string. Use \"0x\" for plain native-value transfers."
  },
  "from": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$",
   "description": "Sender address (the wallet that would sign and broadcast)."
  },
  "chain": {
   "enum": [
    "ethereum",
    "polygon",
    "arbitrum",
    "optimism",
    "base"
   ],
   "type": "string",
   "description": "Target EVM chain. The merchant maps this to the appropriate RPC for simulation."
  },
  "value": {
   "type": "string",
   "description": "Native value in wei. Decimal (\"1000000000000000000\" = 1 ETH) or 0x-prefixed hex (\"0xde0b6b3a7640000\"). Use \"0x0\" for token-only transactions."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blocknotify-transaction-safety-analyzer-86c513f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.blocknotify.com](https://www.zero.xyz/host/x402.blocknotify.com/llms.txt)
