Skip to main content

IMintableERC721

thirdweb

Methods

mintTo

function mintTo(address to, string uri) external nonpayable returns (uint256)

Lets an account mint an NFT.

Parameters

NameTypeDescription
toaddressThe address to mint the NFT to.
uristringThe URI to assign to the NFT.

Returns

NameTypeDescription
_0uint256tokenId of the NFT minted.

Events

TokensMinted

event TokensMinted(address indexed mintedTo, uint256 indexed tokenIdMinted, string uri)

Emitted when tokens are minted via mintTo

Parameters

NameTypeDescription
mintedTo indexedaddressundefined
tokenIdMinted indexeduint256undefined
uristringundefined