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,
        },
})

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

Last updated