Token Negotiator
  • Introduction
  • Quick Start
    • Getting Started with NFT's
    • Getting Started with Fungible Tokens
    • Getting Started with Off Chain Tokens
  • Learn
    • Installation
    • Supported Chains
    • Supported Wallets
    • Supported Attestations
    • Event Hooks
    • Issuer Configurations
      • Issuer Configuration EVM
      • Issuer Configuration Solana
      • Issuer Configuration Flow
      • Issuer Configuration Ultra
      • Issuer Configuration Socios
      • Issuer Configuration Off Chain
    • Active Negotiation (UI)
      • Custom Views
      • View Navigation
      • Theme
      • Configuration Options
    • Passive Negotiation (no UI)
      • Wallet Connection
    • Token Authentication
      • Off Chain Authentication
      • On Chain Token Authentication (evm)
    • Smart Contract and wallet Interaction
      • Sign message
    • Off Chain Token Issuers
  • Reference
  • Articles
  • Videos
  • Showcase
  • Contribution
  • Support
  • Migrating from version 2x to 3x
  • Github Examples
Powered by GitBook
On this page
  1. Learn

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:

negotiator.on("loaded", () => {
    // do something here when the Token Negotiator has loaded
});

PreviousSupported AttestationsNextIssuer Configurations

Last updated 1 year ago

Do you have an use case for an event hook we don't currently provide? Please reach out to us on or via sayhi@smarttokenlabs.com

data: object
  selectedTokens: object
    issuer: string
      tokens: array
        token: object
data: object
    loadedCollections: int
string
data: object
  proof: string
  tokenId: string
  type: string
  error: Object
  issuer: string
issuers: object keys
  issuerName: object key 
    tokenUID: object
      proof: string
      tokenId: string
      type: string
address: string
blockchain: string
chainId: string | number
ethers: module
provider: module
providerType: string
eventType: string 
collectionId: string
tokenOrigin: string
discord