Class TokenManagementTransactionsFactory
Constructors
Methods
createTransactionForAddingQuantity
- createTransactionForAddingQuantity(
options: {
quantityToAdd: bigint;
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
},
): Transaction Parameters
- options: {
quantityToAdd: bigint;
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
}
createTransactionForBurningQuantity
- createTransactionForBurningQuantity(
options: {
quantityToBurn: bigint;
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
},
): Transaction Parameters
- options: {
quantityToBurn: bigint;
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
}
createTransactionForChangingTokenToDynamic
- createTransactionForChangingTokenToDynamic(
options: { sender: IAddress; tokenIdentifier: string },
): Transaction Parameters
- options: { sender: IAddress; tokenIdentifier: string }
createTransactionForCreatingNFT
- createTransactionForCreatingNFT(
options: {
attributes: Uint8Array<ArrayBufferLike>;
hash: string;
initialQuantity: bigint;
name: string;
royalties: number;
sender: IAddress;
tokenIdentifier: string;
uris: string[];
},
): Transaction Parameters
- options: {
attributes: Uint8Array<ArrayBufferLike>;
hash: string;
initialQuantity: bigint;
name: string;
royalties: number;
sender: IAddress;
tokenIdentifier: string;
uris: string[];
}
createTransactionForFreezing
createTransactionForIssuingFungible
- createTransactionForIssuingFungible(
options: {
canAddSpecialRoles: boolean;
canChangeOwner: boolean;
canFreeze: boolean;
canPause: boolean;
canUpgrade: boolean;
canWipe: boolean;
initialSupply: bigint;
numDecimals: bigint;
sender: IAddress;
tokenName: string;
tokenTicker: string;
},
): 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;
}
createTransactionForIssuingNonFungible
- createTransactionForIssuingNonFungible(
options: {
canAddSpecialRoles: boolean;
canChangeOwner: boolean;
canFreeze: boolean;
canPause: boolean;
canTransferNFTCreateRole: boolean;
canUpgrade: boolean;
canWipe: boolean;
sender: IAddress;
tokenName: string;
tokenTicker: string;
},
): Transaction Parameters
- options: {
canAddSpecialRoles: boolean;
canChangeOwner: boolean;
canFreeze: boolean;
canPause: boolean;
canTransferNFTCreateRole: boolean;
canUpgrade: boolean;
canWipe: boolean;
sender: IAddress;
tokenName: string;
tokenTicker: string;
}
createTransactionForIssuingSemiFungible
- createTransactionForIssuingSemiFungible(
options: {
canAddSpecialRoles: boolean;
canChangeOwner: boolean;
canFreeze: boolean;
canPause: boolean;
canTransferNFTCreateRole: boolean;
canUpgrade: boolean;
canWipe: boolean;
sender: IAddress;
tokenName: string;
tokenTicker: string;
},
): Transaction Parameters
- options: {
canAddSpecialRoles: boolean;
canChangeOwner: boolean;
canFreeze: boolean;
canPause: boolean;
canTransferNFTCreateRole: boolean;
canUpgrade: boolean;
canWipe: boolean;
sender: IAddress;
tokenName: string;
tokenTicker: string;
}
createTransactionForLocalBurning
- createTransactionForLocalBurning(
options: {
sender: IAddress;
supplyToBurn: bigint;
tokenIdentifier: string;
},
): Transaction Parameters
- options: { sender: IAddress; supplyToBurn: bigint; tokenIdentifier: string }
createTransactionForLocalMint
- createTransactionForLocalMint(
options: {
sender: IAddress;
supplyToMint: bigint;
tokenIdentifier: string;
},
): Transaction Parameters
- options: { sender: IAddress; supplyToMint: bigint; tokenIdentifier: string }
createTransactionForMetadataRecreate
- createTransactionForMetadataRecreate(
options: {
newAttributes: Uint8Array<ArrayBufferLike>;
newHash: string;
newRoyalties: bigint;
newTokenName: string;
newUris: string[];
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
},
): Transaction Parameters
- options: {
newAttributes: Uint8Array<ArrayBufferLike>;
newHash: string;
newRoyalties: bigint;
newTokenName: string;
newUris: string[];
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
}
createTransactionForModifyingCreator
- createTransactionForModifyingCreator(
options: {
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
},
): Transaction Parameters
- options: { sender: IAddress; tokenIdentifier: string; tokenNonce: bigint }
createTransactionForModifyingRoyalties
- createTransactionForModifyingRoyalties(
options: {
newRoyalties: bigint;
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
},
): Transaction Parameters
- options: {
newRoyalties: bigint;
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
}
createTransactionForPausing
- createTransactionForPausing(
options: { sender: IAddress; tokenIdentifier: string },
): Transaction Parameters
- options: { sender: IAddress; tokenIdentifier: string }
createTransactionForRegisteringAndSettingRoles
- createTransactionForRegisteringAndSettingRoles(
options: {
numDecimals: bigint;
sender: IAddress;
tokenName: string;
tokenTicker: string;
tokenType: TokenType;
},
): Transaction Parameters
- options: {
numDecimals: bigint;
sender: IAddress;
tokenName: string;
tokenTicker: string;
tokenType: TokenType;
}
createTransactionForRegisteringDynamicAndSettingRoles
- createTransactionForRegisteringDynamicAndSettingRoles(
options: {
sender: IAddress;
tokenName: string;
tokenTicker: string;
tokenType: TokenType;
},
): Transaction Parameters
- options: {
sender: IAddress;
tokenName: string;
tokenTicker: string;
tokenType: TokenType;
}
createTransactionForRegisteringDynamicToken
- createTransactionForRegisteringDynamicToken(
options: {
sender: IAddress;
tokenName: string;
tokenTicker: string;
tokenType: TokenType;
},
): Transaction Parameters
- options: {
sender: IAddress;
tokenName: string;
tokenTicker: string;
tokenType: TokenType;
}
createTransactionForRegisteringMetaESDT
- createTransactionForRegisteringMetaESDT(
options: {
canAddSpecialRoles: boolean;
canChangeOwner: boolean;
canFreeze: boolean;
canPause: boolean;
canTransferNFTCreateRole: boolean;
canUpgrade: boolean;
canWipe: boolean;
numDecimals: bigint;
sender: IAddress;
tokenName: string;
tokenTicker: string;
},
): 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;
}
createTransactionForSettingBurnRoleGlobally
- createTransactionForSettingBurnRoleGlobally(
options: { sender: IAddress; tokenIdentifier: string },
): Transaction Parameters
- options: { sender: IAddress; tokenIdentifier: string }
createTransactionForSettingNewUris
- createTransactionForSettingNewUris(
options: {
newUris: string[];
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
},
): Transaction Parameters
- options: {
newUris: string[];
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
}
createTransactionForSettingSpecialRoleOnFungibleToken
- createTransactionForSettingSpecialRoleOnFungibleToken(
options: {
addRoleESDTTransferRole: boolean;
addRoleLocalBurn: boolean;
addRoleLocalMint: boolean;
sender: IAddress;
tokenIdentifier: string;
user: IAddress;
},
): Transaction Parameters
- options: {
addRoleESDTTransferRole: boolean;
addRoleLocalBurn: boolean;
addRoleLocalMint: boolean;
sender: IAddress;
tokenIdentifier: string;
user: IAddress;
}
createTransactionForSettingSpecialRoleOnMetaESDT
- createTransactionForSettingSpecialRoleOnMetaESDT(
options: {
addRoleESDTTransferRole: boolean;
addRoleNFTAddQuantity: boolean;
addRoleNFTBurn: boolean;
addRoleNFTCreate: boolean;
sender: IAddress;
tokenIdentifier: string;
user: IAddress;
},
): Transaction Parameters
- options: {
addRoleESDTTransferRole: boolean;
addRoleNFTAddQuantity: boolean;
addRoleNFTBurn: boolean;
addRoleNFTCreate: boolean;
sender: IAddress;
tokenIdentifier: string;
user: IAddress;
}
createTransactionForSettingSpecialRoleOnNonFungibleToken
- createTransactionForSettingSpecialRoleOnNonFungibleToken(
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;
},
): 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;
}
createTransactionForSettingSpecialRoleOnSemiFungibleToken
- createTransactionForSettingSpecialRoleOnSemiFungibleToken(
options: {
addRoleESDTModifyCreator?: boolean;
addRoleESDTTransferRole: boolean;
addRoleNFTAddQuantity: boolean;
addRoleNFTBurn: boolean;
addRoleNFTCreate: boolean;
sender: IAddress;
tokenIdentifier: string;
user: IAddress;
},
): Transaction Parameters
- options: {
addRoleESDTModifyCreator?: boolean;
addRoleESDTTransferRole: boolean;
addRoleNFTAddQuantity: boolean;
addRoleNFTBurn: boolean;
addRoleNFTCreate: boolean;
sender: IAddress;
tokenIdentifier: string;
user: IAddress;
}
createTransactionForUnfreezing
createTransactionForUnpausing
- createTransactionForUnpausing(
options: { sender: IAddress; tokenIdentifier: string },
): Transaction Parameters
- options: { sender: IAddress; tokenIdentifier: string }
createTransactionForUnsettingBurnRoleGlobally
- createTransactionForUnsettingBurnRoleGlobally(
options: { sender: IAddress; tokenIdentifier: string },
): Transaction Parameters
- options: { sender: IAddress; tokenIdentifier: string }
createTransactionForUpdatingAttributes
- createTransactionForUpdatingAttributes(
options: {
attributes: Uint8Array<ArrayBufferLike>;
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
},
): Transaction Parameters
- options: {
attributes: Uint8Array<ArrayBufferLike>;
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
}
createTransactionForUpdatingMetadata
- createTransactionForUpdatingMetadata(
options: {
newAttributes?: Uint8Array<ArrayBufferLike>;
newHash?: string;
newRoyalties?: bigint;
newTokenName?: string;
newUris?: string[];
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
},
): Transaction Parameters
- options: {
newAttributes?: Uint8Array<ArrayBufferLike>;
newHash?: string;
newRoyalties?: bigint;
newTokenName?: string;
newUris?: string[];
sender: IAddress;
tokenIdentifier: string;
tokenNonce: bigint;
}
createTransactionForUpdatingTokenId
- createTransactionForUpdatingTokenId(
options: { sender: IAddress; tokenIdentifier: string },
): Transaction Parameters
- options: { sender: IAddress; tokenIdentifier: string }
createTransactionForWiping
Use this class to create token management transactions like issuing ESDTs, creating NFTs, setting roles, etc.