What does event do?
The event command posts a transaction hash back to Mandate after you sign and broadcast a raw-validated transaction. Mandate’s envelope verifier compares the on-chain transaction against the parameters you validated. If they match, the intent moves to confirmed. If they do not match, the circuit breaker trips.
This command is required after every validate --raw or transfer --raw flow. Skip it and the intent stays in broadcasted state until it expires.
Usage
Arguments
| Argument | Required | Description |
|---|---|---|
intentId | Yes | The intent ID returned by validate or transfer |
Options
| Option | Required | Description |
|---|---|---|
--tx-hash | Yes | The broadcast transaction hash (0x...) |
Output
next field tells you (or your AI agent) to poll intent status for on-chain confirmation.
When to use this
You needevent in the raw validation flow, after step 2:
mandate validate --raw ...ormandate transfer --raw ...(policy check)- Sign and broadcast the transaction locally
mandate event <intentId> --tx-hash 0x...(envelope verify)mandate status <intentId>(confirm on-chain)
--raw), you do not need event. Preflight flows do not require envelope verification.
Next Steps
Check Intent Status
Poll for on-chain confirmation after posting the event.
MandateClient.postEvent()
The SDK method that powers this command.