Class TokenManagementTransactionsFactory

Use this class to create token management transactions like issuing ESDTs, creating NFTs, setting roles, etc.

Constructors

Properties

argSerializer: ArgSerializer
config: Config
falseAsString: string
trueAsString: string

Methods

  • Parameters

    • options: {
          attributes: Uint8Array;
          hash: string;
          initialQuantity: bigint;
          name: string;
          royalties: number;
          sender: IAddress;
          tokenIdentifier: string;
          uris: string[];
      }
      • attributes: Uint8Array
      • hash: string
      • initialQuantity: bigint
      • name: string
      • royalties: number
      • sender: IAddress
      • tokenIdentifier: string
      • uris: string[]

    Returns Transaction

  • Parameters

    • options: {
          canAddSpecialRoles: boolean;
          canChangeOwner: boolean;
          canFreeze: boolean;
          canPause: boolean;
          canUpgrade: boolean;
          canWipe: boolean;
          initialSupply: bigint;
          numDecimals: bigint;
          sender: IAddress;
          tokenName: string;
          tokenTicker: string;
      }
      • canAddSpecialRoles: boolean
      • canChangeOwner: boolean
      • canFreeze: boolean
      • canPause: boolean
      • canUpgrade: boolean
      • canWipe: boolean
      • initialSupply: bigint
      • numDecimals: bigint
      • sender: IAddress
      • tokenName: string
      • tokenTicker: string

    Returns Transaction

  • Parameters

    • options: {
          canAddSpecialRoles: boolean;
          canChangeOwner: boolean;
          canFreeze: boolean;
          canPause: boolean;
          canTransferNFTCreateRole: boolean;
          canUpgrade: boolean;
          canWipe: boolean;
          sender: IAddress;
          tokenName: string;
          tokenTicker: string;
      }
      • canAddSpecialRoles: boolean
      • canChangeOwner: boolean
      • canFreeze: boolean
      • canPause: boolean
      • canTransferNFTCreateRole: boolean
      • canUpgrade: boolean
      • canWipe: boolean
      • sender: IAddress
      • tokenName: string
      • tokenTicker: string

    Returns Transaction

  • Parameters

    • options: {
          canAddSpecialRoles: boolean;
          canChangeOwner: boolean;
          canFreeze: boolean;
          canPause: boolean;
          canTransferNFTCreateRole: boolean;
          canUpgrade: boolean;
          canWipe: boolean;
          sender: IAddress;
          tokenName: string;
          tokenTicker: string;
      }
      • canAddSpecialRoles: boolean
      • canChangeOwner: boolean
      • canFreeze: boolean
      • canPause: boolean
      • canTransferNFTCreateRole: boolean
      • canUpgrade: boolean
      • canWipe: boolean
      • sender: IAddress
      • tokenName: string
      • tokenTicker: string

    Returns Transaction

  • Parameters

    • options: {
          canAddSpecialRoles: boolean;
          canChangeOwner: boolean;
          canFreeze: boolean;
          canPause: boolean;
          canTransferNFTCreateRole: boolean;
          canUpgrade: boolean;
          canWipe: boolean;
          numDecimals: bigint;
          sender: IAddress;
          tokenName: string;
          tokenTicker: string;
      }
      • canAddSpecialRoles: boolean
      • canChangeOwner: boolean
      • canFreeze: boolean
      • canPause: boolean
      • canTransferNFTCreateRole: boolean
      • canUpgrade: boolean
      • canWipe: boolean
      • numDecimals: bigint
      • sender: IAddress
      • tokenName: string
      • tokenTicker: string

    Returns Transaction

  • Parameters

    • options: {
          addRoleESDTTransferRole: boolean;
          addRoleNFTAddURI: boolean;
          addRoleNFTBurn: boolean;
          addRoleNFTCreate: boolean;
          addRoleNFTUpdateAttributes: boolean;
          sender: IAddress;
          tokenIdentifier: string;
          user: IAddress;
      }
      • addRoleESDTTransferRole: boolean
      • addRoleNFTAddURI: boolean
      • addRoleNFTBurn: boolean
      • addRoleNFTCreate: boolean
      • addRoleNFTUpdateAttributes: boolean
      • sender: IAddress
      • tokenIdentifier: string
      • user: IAddress

    Returns Transaction