openMinterMint
cat-sdk / openMinterMint
Function: openMinterMint()
openMinterMint(
signer,preminerSigner,provider,minterUtxo,tokenId,metadata,tokenReceiver,changeAddress,feeRate):Promise\<{mintPsbt:ExtPsbt;mintTxid:string; }>
Defined in: packages/cat-sdk/src/features/cat20/mint/openMinter.ts:18
Mints a CAT20 token using CAT20OpenMinter contract
The preimner can mint the token with premined amount first, other users can mint the token with a fixed amount later
Parameters
signer
Signer
the signer for the minting
preminerSigner
Signer
the signer for the preminer, pass the deployer signer if premine is disabled, otherwise pass the reminer signer
provider
UtxoProvider & ChainProvider
the provider for the blockchain and UTXO operations
minterUtxo
UTXO
the UTXO of the minter contract
tokenId
string
the ID of the token
metadata
tokenReceiver
ByteString
changeAddress
string
feeRate
number
Returns
Promise\<{ mintPsbt: ExtPsbt; mintTxid: string; }>