These events allow for enhanced monitoring, reporting, and analytics.
Triggered when a route is built
.
event_token_changed - Triggered when the selected token changes
.
event_swap_settings_updated - Triggered when the swap settings are updated
.
event_token_imported - Triggered when a token is imported
.
event_transactions_built - Triggered when a set of transactions is built
.
event_swap_result_received - Triggered when the swap result is received
.
addEventListener
method. Here’s how you can listen event_route_built
event as example:
event.detail
. For example:
event_route_built
: Contains information about the route, including the tokens involved and estimated fees.event_token_changed
: Contains the details of the token that has been changed.event_swap_settings_updated
: Contains the updated swap settings.event_token_imported
: Contains the details of the imported token.event_transactions_built
: Contains the details of the built transactions.event_swap_result_received
: Contains the result of the swap.