Erc721.getMintTransaction() method
Construct a mint transaction without executing it. This is useful for estimating the gas cost of a mint transaction, overriding transaction options and having fine grained control over the transaction execution.
Signature:
getMintTransaction(receiver: string, metadata: NFTMetadataOrUri): Promise<import("./TransactionTask").TransactionTask>;
Parameters
Parameter | Type | Description |
---|---|---|
receiver | string | Address you want to send the token to |
metadata | NFTMetadataOrUri | The metadata of the NFT you want to mint |
Returns:
Promise<import("./TransactionTask").TransactionTask>