v1
latestOpenAPI 3.1.02026-07-22163829.6 KBSettlement
Prepare Settlement Attestation
For an expired series, resolve the price via a tiered waterfall (settled Polymarket outcome if the market has closed, otherwise a time-weighted average price of the YES token over the 30-minute window ending at expiry, sourced from the Polymarket CLOB prices-history endpoint), and return a signed EIP-712 SettlementAttestation that anyone can submit to ConvallaxCore.settle(). If the TWAP window has no price data, the series is escalated to manual review and no attestation is returned.
post/settlement/prepare
Request body
Example request
{
"seriesId": "98765432109876543210"
}Response
Signed settlement attestation
Example response
{
"seriesId": "98765432109876543210",
"resolutionBps": 73,
"validUntil": 1735690500,
"signature": "0xabcdef...",
"meta": {
"method": "twap",
"twap": 0.732145,
"pointCount": 28,
"yesPrice": 1,
"windowStart": 1735687800,
"windowEnd": 1735689600
}
}