Class TokenManagementTransactionsFactory

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

Constructors

Methods

  • Parameters

    • options: {
          attributes: Uint8Array<ArrayBufferLike>;
          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;
      }

    Returns Transaction

  • Parameters

    • options: {
          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;
      }

    Returns Transaction

  • Parameters

    • options: {
          newAttributes: Uint8Array<ArrayBufferLike>;
          newHash: string;
          newRoyalties: bigint;
          newTokenName: string;
          newUris: string[];
          sender: IAddress;
          tokenIdentifier: string;
          tokenNonce: bigint;
      }

    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;
      }

    Returns Transaction

  • Parameters

    • options: {
          addRoleESDTTransferRole: boolean;
          addRoleLocalBurn: boolean;
          addRoleLocalMint: boolean;
          sender: IAddress;
          tokenIdentifier: string;
          user: IAddress;
      }

    Returns Transaction

  • Parameters

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

    Returns Transaction

  • Parameters

    • options: {
          addRoleESDTModifyCreator?: boolean;
          addRoleESDTModifyRoyalties?: boolean;
          addRoleESDTSetNewURI?: boolean;
          addRoleESDTTransferRole: boolean;
          addRoleNFTAddURI: boolean;
          addRoleNFTBurn: boolean;
          addRoleNFTCreate: boolean;
          addRoleNFTRecreate?: boolean;
          addRoleNFTUpdateAttributes: boolean;
          sender: IAddress;
          tokenIdentifier: string;
          user: IAddress;
      }

    Returns Transaction

  • Parameters

    • options: {
          addRoleESDTModifyCreator?: boolean;
          addRoleESDTTransferRole: boolean;
          addRoleNFTAddQuantity: boolean;
          addRoleNFTBurn: boolean;
          addRoleNFTCreate: boolean;
          sender: IAddress;
          tokenIdentifier: string;
          user: IAddress;
      }

    Returns Transaction

  • Parameters

    • options: {
          newAttributes?: Uint8Array<ArrayBufferLike>;
          newHash?: string;
          newRoyalties?: bigint;
          newTokenName?: string;
          newUris?: string[];
          sender: IAddress;
          tokenIdentifier: string;
          tokenNonce: bigint;
      }

    Returns Transaction