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
Parameter | Description |
---|---|
HM_ACCESS_KEY | HyperMint Access Key |
HM_ACCESS_KEY_SECRET | HyperMint Access Key Secret |
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 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 support.moonpay.com and we will get back to you as soon as we can.
Updated 8 months ago