stf()
SftBuilder
class instance, which provides methods to build transactions for the SFT Pallet on The Root Network. It expects four parameters:
api
: the trnApi to use for interaction.signer
: the signer to use for signing transactions.walletAddress
: the wallet address to use for interaction. Note: it should be the EOA address for the signer, not the FuturePass address.collectionId
: the Collection ID to target. Optional parameter.sft
method allows developers to mint
, transfer
, and burn
NFTs.
mint()
serialNumbers
: an array with the serial numbers of the SFTs to mint. Each element in the array should be an object with a tokenId and quantity property, e.g., serialNumbers = [{tokenId, quantity}, {tokenId, quantity}].
walletAddress
: the wallet address to mint the NFTs to.transfer()
serialNumbers
: an array with the serial numbers of the SFTs to transfer. Each element in the array should be an object with a tokenId and quantity property, e.g., serialNumbers = [{tokenId, quantity}, {tokenId, quantity}]
.walletAddress
: the wallet address to transfer the SFTs to.burn()
serialNumbers
: an array with the serial numbers of the SFTs to burn. Each element in the array should be an object with a tokenId and quantity property, e.g., serialNumbers = [{tokenId, quantity}, {tokenId, quantity}]
.