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
| Parameter | Type | Description |
|---|---|---|
blocks_in_future | number | The number of blocks you would like to generate attestations for (current block + 1 <= n <= blocks_in_future) |
Result
| Field | Type | Description |
|---|---|---|
success | bool | Whether or not the request was successful |
attestations | Array<Attestation> | Attestations for future blocks |
Attestation Object
| Field | Type | Description |
|---|---|---|
blockNumber | number | Block number for which this attestation is valid |
unlockData | string | Encoded 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.