Get the Recovery Agent for a particular World ID given its leaf index.
curl --request POST \
--url https://api.example.com/recovery-agent \
--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/recovery-agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"recovery_agent": "0x0"
}Indexer
Get the Recovery Agent for a particular World ID given its leaf index.
If no recovery agent is set, the zero address is returned.
POST
/
recovery-agent
Get the Recovery Agent for a particular World ID given its leaf index.
curl --request POST \
--url https://api.example.com/recovery-agent \
--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/recovery-agent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"recovery_agent": "0x0"
}Body
application/json
Query for the indexer based on a leaf index.
Used for getting inclusion proofs and signature nonces.
The leaf index to query (from the WorldIDRegistry).
Accepts decimal or 0x/0X-prefixed hex input.
Example:
"0x1"
Response
200 - application/json
Response containing the recovery agent from the indexer.
The recovery agent for the World ID.
Please note this may be the zero address if no recovery agent is set for the account.
Serialized as a canonical 0x-prefixed hex string.
Example:
"0x0"
Was this page helpful?