{"name":"onyx_secure_payment","tier":"premium","price_usdc":"0.25","endpoint":"https://onyx-actions.onrender.com/v1/onyx_secure_payment","method":"POST","input_schema":{"type":"object","properties":{"recipient":{"type":"string","description":"0x recipient address the agent is about to pay (Base)."},"amount_usdc":{"type":"number","description":"Amount about to be sent, in USDC. Drives both the risk threshold and the take-rate quote."},"contract_address":{"type":"string","description":"Optional. If the payment interacts with a contract, its 0x address — triggers a full contract audit."},"counterparty_agent_id":{"type":"integer","description":"Optional. If paying another AI agent, its ERC-8004 id — triggers a reputation check."}},"required":["recipient","amount_usdc"]},"description":"Secure-transaction RAIL: one signed clearance before an agent sends funds. Give recipient + amount (and optionally a contract address or counterparty ERC-8004 agent id); Onyx runs the full security stack — recipient firewall, contract audit, counterparty reputation — and returns a single PASS / REVIEW / FAIL verdict + risk score, plus the Onyx take-rate quote (bps of value secured). Ed25519-signed so the clearance is provable. The check a serious agent runs before moving real money. Onyx never takes custody.","when_to_use":"Before an agent moves real money — the single gate that runs the full Onyx security stack and returns one signed PASS/REVIEW/FAIL. Use it as the mandatory pre-send check on any payment above a trivial amount: FAIL = abort, REVIEW = human sign-off, PASS = send. The more an agent is sending, the more this is worth — and the Onyx fee scales with what it protects.","vs_alternatives":"No incumbent offers a single signed 'clearance to send' that fuses recipient screening + contract audit + ERC-8004 counterparty reputation. Running them separately means 3 calls and no aggregate verdict. This returns one signed clearance + a transparent value-based fee, and Onyx never takes custody of funds.","example_request":{"recipient":"0x1111111111111111111111111111111111111111","amount_usdc":5000},"example_response":{"ok":true,"clearance":"REVIEW","amount_usdc":5000,"onyx_take_rate_bps":10,"onyx_fee_usdc":0.5,"summary":"REVIEW to send $5000 → 0x11111111…: recipient_firewall=REVIEW | Onyx fee 10bps = $0.5"},"settle_to":"0x3fD9ee1373562f894D322B37DFFAd7a5D2b2d78f","network":"base","facilitator":"https://facilitator.xpay.sh","payment_required":true,"free_introspection":true,"note":"GET this URL = free introspection card. POST with x402 payment header to call."}