PATCH: Deploy Contract

Allows a user to deploy a draft contract via API.

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

Deploy Contract

This function will deploy a previously created Draft HyperMint contract. This requires Authentication.

Parameters

Header

ParameterDescription
HM_ACCESS_KEYHyperMint Access Key
HM_ACCESS_KEY_SECRETHyperMint Access Key Secret

Response

CodeMeaning
🟢 200: OKResponds with an interaction ID which can be used to check the status of the transaction
🟠 404: Not FoundUnable to find details for the give contract ID
interface DeployContractResponse {
    interactions: InteractionStatusResponse[];
}

interface InteractionStatusResponse {
    id: string;
    type: NFTContractInteractionType;
    status: NetworkInteractionStatus;
    statusReason?: string;
    transactionHash?: string;
    sentAt?: Date;
    update: NFTContractUpdate;
}

You can use the Get Interaction endpoint to check the status of these interactions and confirm when the contract has finished deploying if need be.

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.


What’s Next