onyx_tx_preflight
Universal pre-sign firewall — the check before your agent signs ANY transaction. Give the tx (to, data, value); Onyx decodes the 4-byte selector + args, tells you in plain terms what it does, and flags the wallet-drain patterns: unlimited approve(), setApprovalForAll (blanket NFT approval), transfers to fresh/EOA recipients, raw ETH sends to unknown addresses, and calls to unverified targets. Returns a SIGNED ALLOW/REVIEW/BLOCK + human explanation. The single highest-frequency safety gate an on-chain agent has — every signed tx should pass through it. (price: $0.10 USDC, tier: metered)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The transaction's `to` address (target contract or recipient). Required. | |
| data | No | The transaction calldata (0x-hex). Omit/empty for a plain ETH transfer. | |
| value_wei | No | Optional. ETH value being sent, in wei (base-10 string). |