simulate_intents function runs intent code without modifying the Verifier contract’s state. It accepts the same MultiPayload input as execute_intents.
- For intent structure and types, see Intent Types and Execution.
- For signing intents before simulation, see Signing Intents.
When to use simulations
Validate signatures
Verify that your intent’s digital signature format is valid before executing
Test withdrawals
Ensure a withdrawal will work before committing to it
Check fees
See the fees that will be paid to the Verifier contract for a trade
Example simulation
Here’s a valid, signed intent to trade 100 USDC for 100 USDT between Charlie and Drake:simulate_intents produces:
Response fields
Fees are expressed in pips—100 pips equals 0.01%.