Event Hooks
Event hooks (call backs)
Events for listening to user interaction. Add one or more hooks per event type into your solution.
hook name (string)
data returned
tokens-selected
tokens-loaded
network-change
token-proof
Single token:
Multiple tokens:
connected-wallet
error
Error data
view-changed
n/a
tokens-refreshed
n/a
opened-overlay
n/a
closed-overlay
n/a
loaded
n/a
disconnected-wallet
n/a
user-cancel
page-redirecting
Example usage:
Do you have an use case for an event hook we don't currently provide? Please reach out to us on discord or via sayhi@smarttokenlabs.com
Last updated