Skip to main content

ISignatureMintERC20

The 'signature minting' mechanism used in thirdweb Token smart contracts is a way for a contract admin to authorize an external party's request to mint tokens on the admin's contract. At a high level, this means you can authorize some external party to mint tokens on your contract, and specify what exactly will be minted by that external party.

Methods

mintWithSignature

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

Parameters

NameTypeDescription
reqISignatureMintERC20.MintRequestundefined
signaturebytesundefined

Returns

NameTypeDescription
signeraddressundefined

verify

function verify(ISignatureMintERC20.MintRequest req, bytes signature) external view returns (bool success, address signer)

Parameters

NameTypeDescription
reqISignatureMintERC20.MintRequestundefined
signaturebytesundefined

Returns

NameTypeDescription
successboolundefined
signeraddressundefined

Events

TokensMintedWithSignature

event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, ISignatureMintERC20.MintRequest mintRequest)

Emitted when tokens are minted.

Parameters

NameTypeDescription
signer indexedaddressundefined
mintedTo indexedaddressundefined
mintRequestISignatureMintERC20.MintRequestundefined