Generate Merkle Tree

Endpoint

POST /api/:partner/projects/:externalProjectId/merkle/make

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>",
    body: {
        walletAddresses: ["0x...", "0x...",...], // array of wallet addresses (strings)
        network: "mainnet", // valid options are "testnet" || "mainnet"
}

You will then be returned a response like. This will also update the merkleRoot and merkleTreeFile properties of your project.

200 OK

{
    "status": true,
    "merkleRoot": "0x......123", // Merkle proof for addresses
}

404 NOT FOUND

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

400 BAD

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

Last updated