Skip to main content

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

ParameterTypeDescription
paramsERC721MintParams

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.