sdk.erc721base.mint
Home > @openformat/sdk > ERC721Base > mint
ERC721Base.mint() method
Mint a new ERC721 token with the given tokenURI to the specified recipient address. mint
Signature:
mint(params: ERC721MintParams): Promise<ContractReceipt>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | ERC721MintParams |
Returns:
Promise<ContractReceipt>
{Promise<ContractReceipt>} - The transaction receipt object.
Exceptions
{Error} - Throws an error if the recipient address or tokenURI is invalid or if the transaction fails.