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
Parameter | Description |
---|---|
HM_ACCESS_KEY | HyperMint Access Key |
HM_ACCESS_KEY_SECRET | HyperMint Access Key Secret |
Body
Parameter | Type | Required | Description |
---|---|---|---|
address | string | Y | Wallet address to get authorized |
tokens | Array of token Objects | Y | Contains an Array of objects see request interface below for more details |
Response
Code | Meaning |
---|---|
🟢 200: OK | Responds with an interaction ID which can be used to check the status of the transaction |
🟠 404: Not Found | Unable to find token details for the give contract ID |
🟠 400: Bad Request | The contract has been disabled by an administrator |
🟠 400: Bad Request | The contract has not been deployed |
🟠 400: Bad Request | The wallet address provided is not found |
🟠 400: Bad Request | Attempted to mint using tokenId on ERC-721 contract |
🟠 400: Bad Request | Not 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.
Updated 9 months ago