{
"success": false,
"error": "Quote request not found or expired"
}
{
"success": false,
"error": "Quote request not found or expired"
}
Compute the resolution price for an expired option series and return a signed settlement attestation. The relay reads on-chain series metadata and resolves the price via a tiered waterfall: if the underlying Polymarket market has closed it uses the settled YES outcome, otherwise it computes a time-weighted average (TWAP) of the YES token’s price from the Polymarket CLOB prices-history endpoint over the 30-minute window ending at expiry, then signs an EIP-712 SettlementAttestation with the resolution signer’s key. If that window has no price data, the relay declines to sign and the series is escalated to manual review.The returned attestation can be relayed on-chain by anyone via settleWithAttestation() on ConvallaxCore.
This endpoint should be restricted in production. It is intended for cron jobs and internal automation, not public access.
Body
application/json
seriesId
string
required
Series ID (uint256) as a decimal or hex string.
Example:
"98765432109876543210"
Response
Signed settlement attestation
success
boolean
seriesId
string
Example:
"98765432109876543210"
resolutionBps
integer
Settlement price in basis points of $1 (0–100).
Example:
73
validUntil
integer
Attestation expiry (Unix seconds).
Example:
1735690500
signature
string
EIP-712 SettlementAttestation signature by the resolution signer.
Example:
"0xabcdef..."
meta
object
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Convallax","description":"Convallax is the options layer for prediction markets — trade European calls and puts on Polymarket YES outcomes, collateralized in USDC, settled on Polygon.","colors":{"primary":"#A855F7","light":"#C084FC","dark":"#9333EA"},"logo":{"light":"https://mintcdn.com/convallax/EfbaNSCzHCr8RfdN/logo/dark.png?fit=max\u0026auto=format\u0026n=EfbaNSCzHCr8RfdN\u0026q=85\u0026s=46f032f45116829cce33a65d6f4a3af8","dark":"https://mintcdn.com/convallax/EfbaNSCzHCr8RfdN/logo/dark.png?fit=max\u0026auto=format\u0026n=EfbaNSCzHCr8RfdN\u0026q=85\u0026s=46f032f45116829cce33a65d6f4a3af8","href":"https://convallax.com"},"favicon":"https://mintcdn.com/convallax/TgIfzvMM3Adfdj-H/logo/favicon.png?fit=max\u0026auto=format\u0026n=TgIfzvMM3Adfdj-H\u0026q=85\u0026s=4cdd797cbd7ca06bb2611d5e3ce29edd","appearance":{"default":"dark","strict":true},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://convallax.com/predict"}},"footer":{"socials":{"x":"https://x.com/convallax","github":"https://github.com/convallax"}},"contextual":{"options":["copy","view","chatgpt","claude","download-spec"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"convallax","hasAudioNarration":false,"actualSubdomain":"convallax","customDomains":["docs.convallax.com"],"gitSource":{"type":"github","owner":"kushal613","repo":"convallax","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae95a1290e885ae1a905e50:success","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"Getting Started","count":15},{"language":"default","tag":"Market Maker","count":5},{"language":"default","tag":"On-Chain Contracts","count":4},{"language":"default","tag":"Trading","count":4},{"language":"default","tag":"User","count":4},{"language":"default","tag":"Series","count":3},{"language":"default","tag":"Testnet","count":2},{"language":"default","tag":"Overview","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/settlement/prepare","slug":"/api-reference/settlement/prepare","pageMetadata":{"title":"Prepare Settlement","description":"Compute the TWAP resolution price for an expired option series and return a signed EIP-712 settlement attestation.","openapi":"api-reference/openapi.json POST /settlement/prepare","href":"/api-reference/settlement/prepare"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Compute the TWAP resolution price for an expired option series and return a signed EIP-712 settlement attestation.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Warning}=_components;if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Compute the resolution price for an expired option series and return a signed settlement attestation. The relay reads on-chain series metadata and resolves the price via a tiered waterfall: if the underlying Polymarket market has closed it uses the settled YES outcome, otherwise it computes a time-weighted average (TWAP) of the YES token’s price from the Polymarket CLOB `,_jsx(_components.code,{children:`prices-history`}),` endpoint over the 30-minute window ending at expiry, then signs an EIP-712 `,_jsx(_components.code,{children:`SettlementAttestation`}),` with the resolution signer’s key. If that window has no price data, the relay declines to sign and the series is escalated to manual review.`]}),`\n`,_jsxs(_components.p,{children:[`The returned attestation can be relayed on-chain by anyone via `,_jsx(_components.a,{href:`/api-reference/contracts/settle`,children:_jsx(_components.code,{children:`settleWithAttestation()`})}),` on `,_jsx(_components.code,{children:`ConvallaxCore`}),`.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`This endpoint should be restricted in production. It is intended for cron jobs and internal automation, not public access.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Prepare Settlement","description":"Compute the TWAP resolution price for an expired option series and return a signed EIP-712 settlement attestation.","openapi":"api-reference/openapi.json POST /settlement/prepare","href":"/api-reference/settlement/prepare"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"prepareSettlement","tags":["Settlement"],"summary":"Prepare Settlement Attestation","description":"Compute the TWAP resolution price for an expired option series and return a signed EIP-712 settlement attestation.","requestBody":"46b416f0-fd22-4f9d-a05b-b86567ca2bd4","responses":{"200":"b013e138-3a49-4307-ad3c-2d2248276a11","400":"676f812d-961e-463e-a81a-c959f8148afc","503":"9f86c5cd-5ab4-4d77-b7bd-4e12bf79d0b1"},"method":"post","type":"path","servers":["5a4dd3f3-2715-4fd8-b89c-8739c387b41f"],"security":[],"path":"/settlement/prepare","baseUrlOptions":["https://api.convallax.com"],"title":"Prepare Settlement Attestation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["seriesId"],"properties":{"seriesId":{"type":"string","description":"Series ID (uint256) as a decimal or hex string.","example":"98765432109876543210","isRequired":true,"uniqueKey":"seriesId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"seriesId":"98765432109876543210"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"b013e138-3a49-4307-ad3c-2d2248276a11":{"description":"Signed settlement attestation","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true,"uniqueKey":"success","typeLabel":"boolean"},"seriesId":{"type":"string","example":"98765432109876543210","uniqueKey":"seriesId","typeLabel":"string"},"resolutionBps":{"type":"integer","description":"Settlement price in basis points of $1 (0–100).","example":73,"uniqueKey":"resolutionBps","typeLabel":"integer"},"validUntil":{"type":"integer","description":"Attestation expiry (Unix seconds).","example":1735690500,"uniqueKey":"validUntil","typeLabel":"integer"},"signature":{"type":"string","description":"EIP-712 SettlementAttestation signature by the resolution signer.","example":"0xabcdef...","uniqueKey":"signature","typeLabel":"string"},"meta":{"type":"object","properties":{"method":{"type":"string","description":"Resolution tier that produced the price.","enum":["official","twap"],"example":"twap","uniqueKey":"meta.method","typeLabel":"enum\u003cstring>"},"twap":{"type":"number","description":"Time-weighted average YES price in [0, 1] (when method is twap).","example":0.732145,"uniqueKey":"meta.twap","typeLabel":"number"},"pointCount":{"type":"integer","description":"Number of in-window price samples used for the TWAP.","example":28,"uniqueKey":"meta.pointCount","typeLabel":"integer"},"yesPrice":{"type":"number","description":"Settled YES token price in [0, 1] (when method is official).","example":1,"uniqueKey":"meta.yesPrice","typeLabel":"number"},"windowStart":{"type":"integer","description":"TWAP window start (Unix seconds).","example":1735687800,"uniqueKey":"meta.windowStart","typeLabel":"integer"},"windowEnd":{"type":"integer","description":"TWAP window end = expiry (Unix seconds).","example":1735689600,"uniqueKey":"meta.windowEnd","typeLabel":"integer"}},"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"seriesId":"98765432109876543210","resolutionBps":73,"validUntil":1735690500,"signature":"0xabcdef...","meta":{"method":"twap","twap":0.732145,"pointCount":28,"yesPrice":1,"windowStart":1735687800,"windowEnd":1735689600}}}},"exampleType":"generated"}},"exampleType":"generated"},"676f812d-961e-463e-a81a-c959f8148afc":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Human-readable error message.","example":"Quote request not found or expired","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"Quote request not found or expired"}}},"exampleType":"generated"}},"exampleType":"generated"},"9f86c5cd-5ab4-4d77-b7bd-4e12bf79d0b1":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Human-readable error message.","example":"Quote request not found or expired","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"Quote request not found or expired"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"5a4dd3f3-2715-4fd8-b89c-8739c387b41f":{"url":"https://api.convallax.com","description":"Production"}}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"convallax","siteName":"Convallax","title":"Prepare Settlement - Convallax","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-22T05:51:27.590Z","originalFileLocation":"api-reference/settlement/prepare.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Compute the TWAP resolution price for an expired option series and return a signed EIP-712 settlement attestation.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Convallax\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Prepare Settlement - Convallax\">\u003cmeta data-mint-head property=\"og:description\" content=\"Compute the TWAP resolution price for an expired option series and return a signed EIP-712 settlement attestation.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Convallax\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.convallax.com/api-reference/settlement/prepare\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://convallax.mintlify.site/_mintlify/api/og/v2?division=Settlement\u0026amp;title=Prepare+Settlement\u0026amp;description=Compute+the+TWAP+resolution+price+for+an+expired+option+series+and+return+a+signed+EIP-712+settlement+attestation.\u0026amp;theme=4f85f54083af9e9071310874\u0026amp;signature=8da96787dd29b9de19644cc1a89b183c9aa04781a73a08207004414c144fcec5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Prepare Settlement - Convallax\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Compute the TWAP resolution price for an expired option series and return a signed EIP-712 settlement attestation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://convallax.mintlify.site/_mintlify/api/og/v2?division=Settlement\u0026amp;title=Prepare+Settlement\u0026amp;description=Compute+the+TWAP+resolution+price+for+an+expired+option+series+and+return+a+signed+EIP-712+settlement+attestation.\u0026amp;theme=4f85f54083af9e9071310874\u0026amp;signature=8da96787dd29b9de19644cc1a89b183c9aa04781a73a08207004414c144fcec5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/convallax/jYqvBhugEMAemu4O/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Convallax\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#A855F7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.convallax.com/api-reference/settlement/prepare\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/settlement/prepare.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.convallax.com/#organization\",\"name\":\"Convallax\",\"url\":\"https://docs.convallax.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/convallax/EfbaNSCzHCr8RfdN/logo/dark.png?fit=max\u0026auto=format\u0026n=EfbaNSCzHCr8RfdN\u0026q=85\u0026s=46f032f45116829cce33a65d6f4a3af8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.convallax.com#website\",\"name\":\"Convallax\",\"url\":\"https://docs.convallax.com\",\"publisher\":{\"@id\":\"https://docs.convallax.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.convallax.com/api-reference/settlement/prepare#webpage\",\"url\":\"https://docs.convallax.com/api-reference/settlement/prepare\",\"name\":\"Prepare Settlement\",\"description\":\"Compute the TWAP resolution price for an expired option series and return a signed EIP-712 settlement attestation.\",\"dateModified\":\"2026-06-22T05:51:27.590Z\",\"isPartOf\":{\"@id\":\"https://docs.convallax.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.convallax.com/api-reference/settlement/prepare#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.convallax.com/api-reference/settlement/prepare#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Convallax\",\"item\":\"https://docs.convallax.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prepare Settlement\",\"item\":\"https://docs.convallax.com/api-reference/settlement/prepare\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.convallax.com/api-reference/settlement/prepare#apireference\",\"headline\":\"Prepare Settlement\",\"name\":\"Prepare Settlement\",\"description\":\"Compute the TWAP resolution price for an expired option series and return a signed EIP-712 settlement attestation.\",\"url\":\"https://docs.convallax.com/api-reference/settlement/prepare\",\"mainEntityOfPage\":{\"@id\":\"https://docs.convallax.com/api-reference/settlement/prepare#webpage\"},\"dateModified\":\"2026-06-22T05:51:27.590Z\",\"publisher\":{\"@id\":\"https://docs.convallax.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.convallax.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Convallax\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Convallax\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/settlement/prepare.md","siteName":"Convallax","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Overview","href":"/api-reference/introduction"}]},{"group":"Series","pages":[{"title":"List Markets","openapi":"api-reference/openapi.json GET /v1/markets","href":"/api-reference/series/markets"},{"title":"List Series","openapi":"api-reference/openapi.json GET /v1/series","href":"/api-reference/series/list"},{"title":"Get Series","openapi":"api-reference/openapi.json GET /v1/series/{seriesId}","href":"/api-reference/series/get"}]},{"group":"Trading","pages":[{"title":"Create Quote Request","openapi":"api-reference/openapi.json POST /quote-requests","href":"/api-reference/trading/create-quote-request"},{"title":"Stream Quotes","api":"GET /quote-requests/:id/stream","href":"/api-reference/trading/stream"},{"title":"Poll Quotes","openapi":"api-reference/openapi.json GET /quote-requests/{id}/quotes","href":"/api-reference/trading/poll-quotes"},{"title":"Commit to Quote","openapi":"api-reference/openapi.json POST /quote-requests/{id}/commit","href":"/api-reference/trading/commit"}]},{"group":"Market Maker","pages":[{"title":"Relay Status","openapi":"api-reference/openapi.json GET /maker/v1/status","href":"/api-reference/market-maker/status"},{"title":"Quote Request Stream","api":"GET /v1/mm/quote-requests/stream","href":"/api-reference/market-maker/quote-stream"},{"title":"Submit Quote","openapi":"api-reference/openapi.json POST /v1/mm/quotes","href":"/api-reference/market-maker/submit-quote"},{"title":"Confirm Quote","openapi":"api-reference/openapi.json POST /v1/mm/quotes/{quoteId}/confirm","href":"/api-reference/market-maker/confirm-quote"},{"title":"Post-Trade WebSocket","href":"/api-reference/market-maker/websocket"}]},{"group":"User","pages":[{"title":"Get Profile","openapi":"api-reference/openapi.json GET /v1/user/profile","href":"/api-reference/user/get-profile"},{"title":"List API Keys","openapi":"api-reference/openapi.json GET /v1/user/api-keys","href":"/api-reference/user/list-api-keys"},{"title":"Create API Key","openapi":"api-reference/openapi.json POST /v1/user/api-keys","href":"/api-reference/user/create-api-key"},{"title":"Revoke API Key","description":"Revoke one of your API keys. It stops authenticating immediately.","openapi":"api-reference/openapi.json DELETE /v1/user/api-keys/{id}","href":"/api-reference/user/revoke-api-key"}]},{"group":"Settlement","pages":[{"title":"Prepare Settlement","openapi":"api-reference/openapi.json POST /settlement/prepare","href":"/api-reference/settlement/prepare"}]},{"group":"On-Chain Contracts","pages":[{"title":"fill()","description":"Atomically mint an option, lock collateral, and pay premium on ConvallaxRFQSettlement using a signed maker Order.","href":"/api-reference/contracts/fill"},{"title":"claimHolderPayout()","href":"/api-reference/contracts/claim-holder"},{"title":"claimWriterCollateral()","href":"/api-reference/contracts/claim-writer"},{"title":"settleWithAttestation()","href":"/api-reference/contracts/settle"}]},{"group":"Testnet","pages":[{"title":"Request Testnet USDC","openapi":"api-reference/openapi.json POST /faucet","href":"/api-reference/testnet/faucet"},{"title":"Faucet Status","openapi":"api-reference/openapi.json GET /faucet/status","href":"/api-reference/testnet/faucet-status"}]}]}]},"basePath":"","title":"Prepare Settlement - Convallax","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}