Issuer Configuration Ultra
Token Negotiator issuer configuration Ultra
Parameter
Type
Details
Options
const onChainIssuer = {
blockchain: "ultra",
onChain: true,
collectionID: "ultranft",
contract: "eosio.nft.ft", // static
chain: "testnet", // testnet or mainnet
factoryId: 2669 // NFT collection
};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);
});Last updated