Merkl Developer Portal logo
get

/v4/proofs/{chainId}/{root}

Beta feature (not production ready yet) - Paginated Merkle proofs of the tree or lastTree root of a chain, optionally for one reward token. Requires an API key. Tokens with hidden rewards are refused by token and left out of unfiltered pages.

Path parameters

chainIdstring (integer) | integer
required

Chain ID

rootstring
required

Hex Merkle root, or tree / lastTree for the current onchain roots

Query parameters

cursorstring

nextCursor of the previous page. Omit it for the first page.

itemsnumber | stringdefault: 1000
tokenstring

Reward token address. Omit it to get the proofs of every token.

Responses

200
Response for status 200
Schema
object
chainIdnumber
required
rootstring
required
Hex root of this page. Pass it, not the alias, on the following pages.
proofsobject[]
required
recipientstring
tokenAddressstring
amountstring
proofstring[]
nextCursorstring | null
required
`null` on the last page.
Example
{
  "chainId": 0,
  "root": "string",
  "proofs": [
    {
      "recipient": "string",
      "tokenAddress": "string",
      "amount": "string",
      "proof": [
        "string"
      ]
    }
  ],
  "nextCursor": "string"
}