Get Packed Account Data
curl --request POST \
--url https://api.example.com/packed-account \
--header 'Content-Type: application/json' \
--data '
{
"authenticator_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({authenticator_address: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'})
};
fetch('https://api.example.com/packed-account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"packed_account_data": "0x1"
}{
"code": "<unknown>",
"message": "<string>"
}Indexer
Get Packed Account Data
Returns the packed account data for a given authenticator address from the WorldIDRegistry contract.
POST
/
packed-account
Get Packed Account Data
curl --request POST \
--url https://api.example.com/packed-account \
--header 'Content-Type: application/json' \
--data '
{
"authenticator_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({authenticator_address: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'})
};
fetch('https://api.example.com/packed-account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"packed_account_data": "0x1"
}{
"code": "<unknown>",
"message": "<string>"
}Body
application/json
Request to fetch a packed account index from the indexer.
The authenticator address to look up
Example:
"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
Response
Response containing the packed account index from the indexer.
The packed account data [32 bits recoveryCounter][32 bits pubkeyId][192 bits leafIndex].
Serialized as a canonical 0x-prefixed hex string.
Example:
"0x1"
Was this page helpful?