Use suggestions when your agent supports manual mode and you need to control how long a pending transaction stays available for user approval, or clear stale suggestions mid-execution. In manual mode, transactional SDK calls (Documentation Index
Fetch the complete documentation index at: https://docs.circuit.org/llms.txt
Use this file to discover all available pages before exploring further.
signAndSend, swap.execute, placeOrder, marketOrder, etc.) create suggestions instead of executing immediately. The user approves each suggestion in the Circuit UI before it’s broadcast.
The response in manual mode includes:
suggested(boolean):truesuggestionId(number): Unique suggestion identifier
Automatic Clearing
Manual Clearing
Clear pending suggestions at any point during execution:success(boolean): Whether the pending suggestions were clearederror(string | null): Error message if clearing failed
expiresAt
All transactional SDK methods accept an optional expiresAt parameter (ISO 8601 timestamp). If the user hasn’t approved by this time, the suggestion is discarded.
Notes
expiresAtis available on:signAndSend/sign_and_send,swap.execute,placeOrder/place_order,transfer, andmarketOrder/market_order.- In
automode,expiresAtis ignored — transactions execute immediately. - Suggestions that expire before user approval are automatically discarded.
See Also
- Manual vs Auto Mode — Overview of execution modes and when to use each
- Swap —
expiresAtworks onswap.execute()too