Skip to main content

getAttestations

Intro

URL: https://attestations.angstrom.xyz/getAttestations Swagger Api: https://sorellalabs.github.io/attestation-api/

Generates signed attestations for a specified number of future blocks.

Notes

  • This endpoint requires an API key, please reach out to our team to obtain one.

Parameters

ParameterTypeDescription
blocks_in_futurenumberThe number of blocks you would like to generate attestations for (current block + 1 <= n <= blocks_in_future)

Result

FieldTypeDescription
successboolWhether or not the request was successful
attestationsArray<Attestation>Attestations for future blocks
Attestation Object
FieldTypeDescription
blockNumbernumberBlock number for which this attestation is valid
unlockDatastringEncoded unlock attestation

Request

curl -X 'POST' \
'https://attestations.angstrom.xyz/getAttestations' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'x-api-key: <API KEY>' \
-d '{
"blocks_in_future": 5
}'

Response

{
"success": true,
"attestations": [
{
"blockNumber": 12345678,
"unlockData": "0x1234...abcd"
},
{
"blockNumber": 12345679,
"unlockData": "0x5678...ef01"
}
]
}

See Also

This endpoint is primarily used with the Angstrom Adpater.