Get Signature Nonce
curl --request POST \
--url https://api.example.com/signature-nonce \
--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/signature-nonce', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"signature_nonce": "0x0"
}Indexer
Get Signature Nonce
Returns the current signature nonce for a given World ID based on its leaf index. The nonce is used to perform on-chain operations for the World ID.
POST
/
signature-nonce
Get Signature Nonce
curl --request POST \
--url https://api.example.com/signature-nonce \
--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/signature-nonce', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"signature_nonce": "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 signature nonce from the indexer.
The signature nonce for the account.
Serialized as a canonical 0x-prefixed hex string.
Example:
"0x0"
Was this page helpful?