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
  2. Active Negotiation (UI)

Configuration Options

Active Mode Configuration Options

The options below are unique to the Active configuration.

When true toggles will appear beside each token within a collection.

hideToggle: boolean

Show a html snippet inside TKN when no tokens are found from a supported collection.

noTokenMsg: html snippet

Example usage:

window.negotiator = new negotiator.Client({
          type: "active",
          issuers: [
            {
              hideToggle: true,
              noTokenMsg:
                "<p>No tokens found. If you have a token please ensure you have connected correct wallet</p>"
              ...specific issuer collection details 
            }
          ]
})

General UI options for Active Mode. These allow for customisation of text used across the user experience flow.

window.negotiator = new negotiator.Client({
          type: "active",
          issuers: [
            {
              hideToggle: true,
              noTokenMsg:
                "<p>No tokens found. If you have a token please ensure you have connected correct wallet</p>"
              ...specific issuer collection details 
            }
          ],
          uiOptions: {
            openingHeading:
              "Open a new world of perks, benefits and opportunities with your attestation, collectible or token.",
            issuerHeading: "Get discount with Ticket",
            repeatAction: "Retry",
            dismissAction: 'Dismiss',
            loadAction: 'Load Collection',
            noTokensFoundEvent: 'No Tokens Found',
            balancesFoundEvent: 'Balance Found',
            nftsFoundEvent: 'Token(s) Found',
            reDirectIssuerHeadingEvent: 'Connecting to Issuers...',
            reDirectIssuerBodyEvent: "Your browser will re-direct shortly",
            authenticationHeadingEvent: 'Authenticating...',
            authenticationBodyEvent: "You may need to sign a new challenge in your wallet",
            walletDidntConnectAction: "Wallet didn't connect",
            cancelAction: "Cancel",
            openingAction: "Let's Go!",
            theme: theme,
            position: "top-right",
            userCancelIssuerAutoRedirectTimer: 2000,
        },
})

PreviousThemeNextPassive Negotiation (no UI)

Last updated 1 year ago

For support and any questions please reach out to us on or via sayhi@smarttokenlabs.com

discord