Get Inclusion Proof
curl --request POST \
--url https://api.example.com/inclusion-proof \
--header 'Content-Type: application/json' \
--data '
{
"leaf_index": "0x1"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({leaf_index: '0x1'})
};
fetch('https://api.example.com/inclusion-proof', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"authenticator_pubkeys": [
"<string>"
],
"leaf_index": "0x2a",
"root": "0x1a2b3c4d5e6f7890",
"siblings": [
"<string>"
]
}{
"code": "<unknown>",
"message": "<string>"
}World ID Indexer
Get Inclusion Proof
Returns a Merkle inclusion proof for the given leaf index to the current WorldIDRegistry tree. In
addition, it also includes the entire authenticator slot list for the World ID account.
Removed authenticators are represented as null entries to preserve pubkey_id positions.
POST
/
inclusion-proof
Get Inclusion Proof
curl --request POST \
--url https://api.example.com/inclusion-proof \
--header 'Content-Type: application/json' \
--data '
{
"leaf_index": "0x1"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({leaf_index: '0x1'})
};
fetch('https://api.example.com/inclusion-proof', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"authenticator_pubkeys": [
"<string>"
],
"leaf_index": "0x2a",
"root": "0x1a2b3c4d5e6f7890",
"siblings": [
"<string>"
]
}{
"code": "<unknown>",
"message": "<string>"
}Body
application/json
Response
Merkle inclusion proof with authenticator public keys
OpenAPI schema representation of the AccountInclusionProof response.
Was this page helpful?