What does approve do?
The approve command polls the Mandate API until the wallet owner makes an approval decision. It blocks until the intent is approved, rejected, or the timeout expires. Use it after catching an approval-required response from validate or transfer.
Usage
Arguments
| Argument | Required | Description |
|---|---|---|
intentId | Yes | The intent ID awaiting approval |
Options
| Option | Required | Default | Description |
|---|---|---|---|
--timeout | No | 3600 | Maximum wait time in seconds (1 hour) |
Output
Approved:When to use this
Thevalidate and transfer commands return a requiresApproval: true response when the transaction exceeds the approval threshold set in the dashboard. The response includes the intentId and a next field pointing to approve:
reason field. They approve or reject from the dashboard.
Your agent runs mandate approve <intentId> to wait for the decision. Once approved, proceed with signing and broadcasting. If rejected or expired, stop.
Typical flow
mandate validate --action transfer --amount 5000 ...returns approval requiredmandate approve <intentId> --timeout 600waits up to 10 minutes- If approved:
mandate event <intentId> --tx-hash 0x...(raw flow only) mandate status <intentId>to confirm
Next Steps
Check Intent Status
Verify the final state after approval.
Handle Approvals Guide
End-to-end guide for integrating approval workflows into your agent.
Dashboard Approvals
Configure approval thresholds and notification channels.