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. Issuer Configurations

Issuer Configuration Ultra

Token Negotiator issuer configuration Ultra

Parameters to create a configuration for Ultra token collections.

Parameter
Type
Details
Options

onChain

boolean

defines if the collection is on or off chain. Set this value to true.

true | false

collectionID

string

a unique string identifier for your usage (this will be the name space your tokens are kept)

string

contract

string

smart contract address of the collection

string

chain

string

the network of the blockchain (refer to supported Chains page)

string

factoryId

number

collection identifier

string

blockchain

string

set to 'ultra'

string

Non Fungible Token example issuer configuration:

const onChainIssuer = {
	blockchain: "ultra",
	onChain: true,
	collectionID: "ultranft",
	contract: "eosio.nft.ft", // static
	chain: "testnet", // testnet or mainnet
        factoryId: 2669 // NFT collection
};

Example use

import { Client } from "@tokenscript/token-negotiator";
import "@tokenscript/token-negotiator/dist/theme/style.css";

// configuration

const negotiator = new Client({
	type: "active",
	issuers: [
		{
			blockchain: "ultra",
			onChain: true,
			collectionID: "ultranft",
			contract: "eosio.nft.ft", // static
			chain: "testnet", // testnet or mainnet
		        factoryId: 2669 // NFT collection
		}
	],
	uiOptions: {
		openingHeading: "Connect your NFT to access custom content and more.",
		issuerHeading: "Get discount with token",
		repeatAction: "try again",
		theme: "light",
		position: "bottom-right",
	},
});

// invoke

negotiator.negotiate();

// event hooks

negotiator.on("tokens-selected", (tokens) => {
	console.log('owner tokens', tokens);
});

Resource Links 🔗

Please note: To utilise Token Negotiators implementation for Ultra please install Ultra's Wallet Chrome extension.

PreviousIssuer Configuration FlowNextIssuer Configuration Socios

Last updated 1 year ago

https://ultra.io/