Go to app

📘

Supported API key types: Publishable, Secret

Description

Get the Merkle proof for an entry, specified by a projectId and an address. If the entry does not exist in the active Merkle tree (based on the trees created at Developers > Merkle trees), this endpoint will return a 404 error.

You can think of this proof as a "ticket" tied to a particular address that unlocks access to a particular smart contract function. The transaction sent to the smart contract should include the proof that was issued for the transaction sender.

Attestation availability (e.g., eligibility to mint) for a given address can be determined by calling this endpoint and checking whether this endpoint returns a 200 (a valid proof) or a 404 (the attestation is unavailable). If you're interested instead in displaying registration/raffle status for your users, use the Entries API.

Response interface

{
  data: {
    proof: string[];
    attestationData: Record<string, string | bool> | null;
  };
}
{
  error: {
    message: string;
  };
}
Language
Click Try It! to start a request and see the response here!