Search
K

Mint Token

Performs a mint on the contract.
Contracts using ERC721 should only pass a single token with id 0
Only deployed contracts can be minted
put
https://api.hypermint.com/v1
/nft-contract/:contractId/mint
Initiates a mint on a specific contract
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 Mint Status).
Parameters
Header
HM_ACCESS_KEY*
HyperMint Access Key
HM_ACCESS_KEY_SECRET*
HyperMint Access Key Secret
Body
address*
String
Wallet address of the user
tokens*
Array of token Objects
contains an Array of objects see request interface below for more details
Responses
200: OK
Returns an interaction 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 valid
400: Bad Request
Attempted to mint using token id on an ERC721 contract
400: Bad Request
Not enough remaining supply
404: Not Found
The token does not exist

Request Interface

interface MintRequest {
address: string;
tokens: {
id: number;
amount: number;
}[];
}

Feedback

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