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://rfq-quotes.angstrom.xyz/get_quote' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"block": 23635551,
"token_in": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"token_out": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount_in": "1000000000"
}'

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.