Skip to main content

SignatureMintERC721

Methods

mintWithSignature

function mintWithSignature(ISignatureMintERC721.MintRequest req, bytes signature) external payable returns (address signer)

Mints tokens according to the provided mint request.

Parameters

NameTypeDescription
reqISignatureMintERC721.MintRequestThe payload / mint request.
signaturebytesThe signature produced by an account signing the mint request.

Returns

NameTypeDescription
signeraddressundefined

verify

function verify(ISignatureMintERC721.MintRequest _req, bytes _signature) external view returns (bool success, address signer)

Verifies that a mint request is signed by an authorized account.

Parameters

NameTypeDescription
_reqISignatureMintERC721.MintRequestundefined
_signaturebytesundefined

Returns

NameTypeDescription
successboolundefined
signeraddressundefined

Events

TokensMintedWithSignature

event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, ISignatureMintERC721.MintRequest mintRequest)

Parameters

NameTypeDescription
signer indexedaddressundefined
mintedTo indexedaddressundefined
tokenIdMinted indexeduint256undefined
mintRequestISignatureMintERC721.MintRequestundefined