PUT: Mint Token

Performs a mint on the contract.

📘

Contracts using ERC-721 should only pass a single token with id 0

📘

Only deployed contracts can be minted

https://api.hypermint.com/v1/nft-contract/:contractId/mint

Mint Tokens

Multiple amounts and tokens can be minted at once by specifying them in the tokens array and they will be delivered in a single transaction.

The id returned in the response can be used to check the status of the mint (see GET: Mint Status).

Parameters

Header

ParameterDescription
HM_ACCESS_KEYHyperMint Access Key
HM_ACCESS_KEY_SECRETHyperMint Access Key Secret

Body

ParameterTypeRequiredDescription
addressstringYWallet address to get authorized
tokensArray of token ObjectsYContains an Array of objects see request interface below for more details

Response

CodeMeaning
🟢 200: OKResponds with an interaction ID which can be used to check the status of the transaction
🟠 404: Not FoundUnable to find token details for the give contract ID
🟠 400: Bad RequestThe contract has been disabled by an administrator
🟠 400: Bad RequestThe contract has not been deployed
🟠 400: Bad RequestThe wallet address provided is not found
🟠 400: Bad RequestAttempted to mint using tokenId on ERC-721 contract
🟠 400: Bad RequestNot enough remaining supply
interface MintResponse {
    id: string;
}

Feedback

Something not quite right, unclear or can't find what you are looking for? Please let us know at support.moonpay.com and we will get back to you as soon as we can.