Fetch Merkle Tree

Endpoint

GET /api/:partner/projects/:externalProjectId/merkle/root

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 that is the current merkle tree for the currently stored merkle tree. WIll return null if no stored addresses.

200 OK

{
    "status": true,
    "merkleRoot": "0x......123" || null, // 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