Generate Contract For Project

This resource is heavily rate-limited. Please consider throttling requests pre-flight to prevent restrictions on outputs.

Endpoint

POST /contractApi/:partner/projects/create/:externalProjectId

When requesting this URL replace :partner with your specific partner tag, which you will receive when onboarded with Mintplex. This tag must match the one provided to you by Mintplex.

externalProjectId is the unique project in which you refer to the project in your system.

{
    headers: "Authorization <USER_ETH_ADDRESS_ALL_LOWERCASE>",
}

You will then be returned a response like

200 OK

{
    "status": true,
    "contract": {
        abi: [...], // used to interact with contract once deployed
        bytecode: [...], // used to deploy contract and validate source code
    }
}

500 ERROR

{
    "status": false,
    "message: "Contract could not be generated.",
    "contract": null
}

404 BAD

{
    "status": false,
    "message": "Project not found",
    "contract": null
}

400 BAD

{
    "status": false,
    "message": "invalid params",
    "contract": null
}

Last updated