Skip to main content
The Verifier smart contract emits events to log information about every intent execution and balance change. You can use these events to track on-chain actions, build indexers, and verify intent outcomes.

Event structure

Based on NEP-297, NEAR events are prefixed with the string EVENT_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
This design stems from how all tokens use the Multi Token standard for storage inside the Verifier smart contract.