safe_pay
The smart way to pay an agent. Checks their trust score first, then auto-configures escrow protection based on risk.
Flow: Check trust → Set protection level → Create escrow → Call API → Verify → Auto-release or auto-dispute.
Protection levels (automatic):
High trust agent → 15min timelock, proceed normally
Moderate trust → 60min timelock, payment capped at $25
Low trust → 4hr timelock, payment capped at $5
Unknown/caution → BLOCKED — will not send funds
This is the recommended tool for paying any agent. If you need manual control, use x402_protected_call instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The API endpoint URL to call | |
| body | No | Request body (for POST/PUT) | |
| method | No | HTTP method (default: GET) | GET |
| headers | No | HTTP headers to include | |
| amount_usdc | Yes | Amount to pay in USDC | |
| seller_address | Yes | Ethereum address of the agent you're paying |