Pass a quantity attribute to the
mintConfig
indicating the total number of NFTs and update the totalPrice
accordingly.The price on the mintConfig must match the price on the contract. For example, if you are selling 2 NFTs for 1 ETH each, the
totalPrice
should be 2 ETH.For external EVM contracts registered in Crossmint Console, ensure the attribute name in
callData
matches the
parameter name in your mint function. For example: If your mint function has the signature: mintTo(address _to, uint256 _amount)
then use _amount
instead of quantity
. See our Register External
Collection guide for details on registering your contract.Make sure that all NFTs belong to the same collectionId and blockchain.
See example
See example
The following examples are for the hosted checkout button. For the embedded checkout, you may adjust the
mintConfig
analogously.