- For intent types that trigger these events, see Intent Types and Execution.
- To preview events before execution, see Simulating Intents.
Event structure
Based on NEP-297, NEAR events are prefixed with the stringEVENT_JSON. The Verifier contract emits events using the DIP-4 standard, which wraps event data in a JSON object with standard, version, event, and data fields.
Here is a token_diff event emitted after a successful trade:
Intent events
These events are directly related to submitted intents. See the full list of available events.For withdrawal events, it is often difficult to emit only on success because the outcome depends on cross-contract calls.
Multi Token events
Multi Token events indicate changes in the internal balances of the Verifier contract. See the available events.Why “mint” and “burn”?
You can think of the Verifier as a set of isolated balances that can increase, decrease, or move between accounts. Although balances are conserved and simply moved between accounts, from the Verifier contract’s perspective:- Increasing token amounts is equivalent to minting
- Decreasing token amounts is akin to burning