import requests# `quote` is quotes[0] from the RFQ response, passed through unchangedresponse = requests.post( "https://api.sprinter.tech/lifi-intents/transaction", json=quote,)tx = response.json()["transactionRequest"]
// `quote` is quotes[0] from the RFQ response, passed through unchangedconst response = await fetch( "https://api.sprinter.tech/lifi-intents/transaction", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(quote), });const { transactionRequest } = await response.json();// send it from the user's walletconst hash = await walletClient.sendTransaction({ to: transactionRequest.to, data: transactionRequest.data, value: BigInt(transactionRequest.value), chainId: transactionRequest.chainId,});
package mainimport ( "bytes" "fmt" "io" "net/http")func main() { // quoteJSON is quotes[0] from the RFQ response, passed through unchanged resp, _ := http.Post( "https://api.sprinter.tech/lifi-intents/transaction", "application/json", bytes.NewReader(quoteJSON), ) defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(string(body))}
Turns a quote into an unsigned open call on the LI.FI intents input settler escrow. When the quote carries a quoteId from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.
import requests# `quote` is quotes[0] from the RFQ response, passed through unchangedresponse = requests.post( "https://api.sprinter.tech/lifi-intents/transaction", json=quote,)tx = response.json()["transactionRequest"]
// `quote` is quotes[0] from the RFQ response, passed through unchangedconst response = await fetch( "https://api.sprinter.tech/lifi-intents/transaction", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(quote), });const { transactionRequest } = await response.json();// send it from the user's walletconst hash = await walletClient.sendTransaction({ to: transactionRequest.to, data: transactionRequest.data, value: BigInt(transactionRequest.value), chainId: transactionRequest.chainId,});
package mainimport ( "bytes" "fmt" "io" "net/http")func main() { // quoteJSON is quotes[0] from the RFQ response, passed through unchanged resp, _ := http.Post( "https://api.sprinter.tech/lifi-intents/transaction", "application/json", bytes.NewReader(quoteJSON), ) defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(string(body))}
Turns a quote into an unsigned open call on the LI.FI input settler escrow. POST the quote object you received from GET /lifi-intents/rfq; you get the same object back with transactionRequest populated.Sending that transaction escrows the inputs on the origin chain and broadcasts the order to solvers.
Include the quoteId from the RFQ response. Without it the endpoint still returns valid calldata, but no liquidity is reserved and the order is not guaranteed a Sprinter fill — you get no error saying so.
Converting a quote refreshes its reservation to 60 seconds, counted from this call — not from the RFQ. That is the window you have to get the transaction signed and on-chain.
Held for
60 seconds from the /transaction response
Applies when
The posted quote carries a quoteId. The 15-second RFQ reservation is extended to the full 60 seconds and re-keyed from the quote id to the on-chain order id
Without a quoteId
Nothing is reserved and nothing is refreshed
After it lapses
The liquidity is released back to the pool. The calldata stays valid and the order is still fillable, but no longer guaranteed a Sprinter fill
Reservations come out of a pool shared with other solvers, so liquidity held against your quote is liquidity nobody else can be quoted. Each conversion holds its full amount for 60 seconds — four times the RFQ window — and the hold is not released early if you never send the transaction. Test this endpoint with small amounts: a loop over real quote sizes can take a meaningful share of a pool out of circulation a minute at a time.
~6 minutes out — 1 minute exclusive to Sprinter, then 5 minutes open to any solver
expires
fillDeadline + a settlement buffer: ~13 minutes for same-chain orders, ~12 hours for cross-chain
inputOracle / output oracle
From Sprinter’s configuration
Exclusivity
Encoded per output; defaults to Sprinter’s filler address
value
Sum of native-token inputs, hex encoded. 0x0 for ERC-20-only orders
You can override nonce, expires, fillDeadline and inputOracle by setting them in the order object on the request, and override the exclusive filler with metadata.exclusiveFor. Leave them unset unless you have a specific reason — the defaults are what the reservation is priced against.
import requests# `quote` is quotes[0] from the RFQ response, passed through unchangedresponse = requests.post( "https://api.sprinter.tech/lifi-intents/transaction", json=quote,)tx = response.json()["transactionRequest"]
// `quote` is quotes[0] from the RFQ response, passed through unchangedconst response = await fetch( "https://api.sprinter.tech/lifi-intents/transaction", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(quote), });const { transactionRequest } = await response.json();// send it from the user's walletconst hash = await walletClient.sendTransaction({ to: transactionRequest.to, data: transactionRequest.data, value: BigInt(transactionRequest.value), chainId: transactionRequest.chainId,});
package mainimport ( "bytes" "fmt" "io" "net/http")func main() { // quoteJSON is quotes[0] from the RFQ response, passed through unchanged resp, _ := http.Post( "https://api.sprinter.tech/lifi-intents/transaction", "application/json", bytes.NewReader(quoteJSON), ) defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(string(body))}
Sprinter fills on the destination chain within the exclusivity window and is repaid when the escrow settles. If nobody fills before fillDeadline, the order is reclaimable on the escrow contract — failureHandling is refund-automatic, so nothing is stranded.
Unsigned transaction calling open() on the input settler escrow. Send it from the user's wallet.
Show child attributes
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Credit runs on Sprinter","colors":{"primary":"#FF5100","light":"#FF7A3D","dark":"#CC4100"},"favicon":"https://mintcdn.com/sprinter-1ab1fed0/gd70ilharDykweEQ/favicon.svg?fit=max\u0026auto=format\u0026n=gd70ilharDykweEQ\u0026q=85\u0026s=779f22112aa1cf35630e73fa030517f0","logo":{"light":"https://mintcdn.com/sprinter-1ab1fed0/QenxOo-sSJTAjrWq/logo/light.svg?fit=max\u0026auto=format\u0026n=QenxOo-sSJTAjrWq\u0026q=85\u0026s=b597af07f9924dfd997c717bd3ca45fc","dark":"https://mintcdn.com/sprinter-1ab1fed0/QenxOo-sSJTAjrWq/logo/dark.svg?fit=max\u0026auto=format\u0026n=QenxOo-sSJTAjrWq\u0026q=85\u0026s=b9394aebf17a1621b60229777e9713b0"},"api":{"openapi":["api-reference/sprinter/openapi.json","api-reference/solve/openapi.yaml"]},"navbar":{"links":[{"label":"Website","href":"https://sprinter.tech"}],"primary":{"type":"button","label":"Swagger","href":"https://api.sprinter.tech/swagger/index.html"}},"footer":{"socials":{"github":"https://github.com/sprintertech","x":"https://x.com/sprinter_ux","youtube":"https://youtube.com/@sprinter"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/sprintertech","icon":"github"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sprinter-1ab1fed0","hasAudioNarration":false,"actualSubdomain":"sprinter-1ab1fed0","customDomains":["docs.sprinter.tech"],"gitSource":{"type":"github","owner":"sprintertech","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9491d2b3cf0697cfe7a31:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Sprinter API","count":30},{"language":"default","tag":"Documentation","count":24},{"language":"default","tag":"Credit","count":16},{"language":"default","tag":"Quickstart","count":10},{"language":"default","tag":"Liquidity","count":9},{"language":"default","tag":"Credit Advanced","count":7},{"language":"default","tag":"Liquidity Info","count":6},{"language":"default","tag":"Sprinter Credit","count":6},{"language":"default","tag":"Solve RFQ","count":5},{"language":"default","tag":"Credit Actions","count":4}]},"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/sprinter/lifi-intents/transaction","slug":"/api-reference/sprinter/lifi-intents/transaction","pageMetadata":{"title":"Build the Escrow Open Transaction","sidebarTitle":"Transaction","openapi":"post /lifi-intents/transaction","description":"Turns a quote into an unsigned `open` call on the LI.FI intents input settler escrow. When the quote carries a `quoteId` from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.","href":"/api-reference/sprinter/lifi-intents/transaction"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Turns a quote into an unsigned \", _jsx(_components.code, {\n children: \"open\"\n }), \" call on the LI.FI intents input settler escrow. When the quote carries a \", _jsx(_components.code, {\n children: \"quoteId\"\n }), \" from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.\"]\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`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,Table,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Turns a quote into an unsigned `,_jsx(_components.code,{children:`open`}),` call on the LI.FI input settler escrow. POST the quote object you received from `,_jsx(_components.a,{href:`/api-reference/sprinter/lifi-intents/rfq`,children:_jsx(_components.code,{children:`GET /lifi-intents/rfq`})}),`; you get the same object back with `,_jsx(_components.code,{children:`transactionRequest`}),` populated.`]}),`\n`,_jsx(_components.p,{children:`Sending that transaction escrows the inputs on the origin chain and broadcasts the order to solvers.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Include the `,_jsx(_components.code,{children:`quoteId`}),` from the RFQ response. Without it the endpoint still returns valid calldata, but `,_jsx(_components.strong,{children:`no liquidity is reserved`}),` and the order is not guaranteed a Sprinter fill — you get no error saying so.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`reservation-window`,children:`Reservation window`}),`\n`,_jsxs(_components.p,{children:[`Converting a quote `,_jsx(_components.strong,{children:`refreshes its reservation to 60 seconds, counted from this call`}),` — not from the RFQ. That is the window you have to get the transaction signed and on-chain.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Held for`})}),_jsxs(_components.td,{children:[`60 seconds from the `,_jsx(_components.code,{children:`/transaction`}),` response`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Applies when`})}),_jsxs(_components.td,{children:[`The posted quote carries a `,_jsx(_components.code,{children:`quoteId`}),`. The 15-second RFQ reservation is extended to the full 60 seconds and re-keyed from the quote id to the on-chain order id`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsxs(_components.strong,{children:[`Without a `,_jsx(_components.code,{children:`quoteId`})]})}),_jsx(_components.td,{children:`Nothing is reserved and nothing is refreshed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`After it lapses`})}),_jsx(_components.td,{children:`The liquidity is released back to the pool. The calldata stays valid and the order is still fillable, but no longer guaranteed a Sprinter fill`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Reservations come out of a pool `,_jsx(_components.strong,{children:`shared with other solvers`}),`, so liquidity held against your quote is liquidity nobody else can be quoted. Each conversion holds its full amount for 60 seconds — four times the RFQ window — and the hold is not released early if you never send the transaction. Test this endpoint with small amounts: a loop over real quote sizes can take a meaningful share of a pool out of circulation a minute at a time.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`what-the-endpoint-fills-in`,children:`What the endpoint fills in`}),`\n`,_jsxs(_components.p,{children:[`You supply `,_jsx(_components.code,{children:`preview`}),`; everything else is derived:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Derived as`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`nonce`})}),_jsx(_components.td,{children:`Generated per request`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fillDeadline`})}),_jsx(_components.td,{children:`~6 minutes out — 1 minute exclusive to Sprinter, then 5 minutes open to any solver`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expires`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`fillDeadline`}),` + a settlement buffer: ~13 minutes for same-chain orders, ~12 hours for cross-chain`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`inputOracle`}),` / output oracle`]}),_jsx(_components.td,{children:`From Sprinter’s configuration`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Exclusivity`}),_jsx(_components.td,{children:`Encoded per output; defaults to Sprinter’s filler address`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`value`})}),_jsxs(_components.td,{children:[`Sum of native-token inputs, hex encoded. `,_jsx(_components.code,{children:`0x0`}),` for ERC-20-only orders`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`You can override `,_jsx(_components.code,{children:`nonce`}),`, `,_jsx(_components.code,{children:`expires`}),`, `,_jsx(_components.code,{children:`fillDeadline`}),` and `,_jsx(_components.code,{children:`inputOracle`}),` by setting them in the `,_jsx(_components.code,{children:`order`}),` object on the request, and override the exclusive filler with `,_jsx(_components.code,{children:`metadata.exclusiveFor`}),`. Leave them unset unless you have a specific reason — the defaults are what the reservation is priced against.`]}),`\n`,_jsx(Heading,{level:`2`,id:`constraints`,children:`Constraints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Every entry in `,_jsx(_components.code,{children:`preview.inputs`}),` must be on the same origin chain. Mixed origins are rejected with `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The returned transaction must be sent by `,_jsx(_components.code,{children:`transactionRequest.from`}),` — the payer named in the first input.`]}),`\n`,_jsxs(_components.li,{children:[`Send it promptly — the reservation lapses 60 seconds after this call. See `,_jsx(_components.a,{href:`#reservation-window`,children:`Reservation window`}),`.`]}),`\n`]}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`after-the-fill`,children:`After the fill`}),`\n`,_jsxs(_components.p,{children:[`Sprinter fills on the destination chain within the exclusivity window and is repaid when the escrow settles. If nobody fills before `,_jsx(_components.code,{children:`fillDeadline`}),`, the order is reclaimable on the escrow contract — `,_jsx(_components.code,{children:`failureHandling`}),` is `,_jsx(_components.code,{children:`refund-automatic`}),`, so nothing is stranded.`]})]})}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":"Build the Escrow Open Transaction","sidebarTitle":"Transaction","openapi":"post /lifi-intents/transaction","description":"Turns a quote into an unsigned `open` call on the LI.FI intents input settler escrow. When the quote carries a `quoteId` from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.","href":"/api-reference/sprinter/lifi-intents/transaction"}}},"mdxSourceWithNoJs":{"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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,RequestExample,ResponseExample,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Turns a quote into an unsigned `,_jsx(_components.code,{children:`open`}),` call on the LI.FI input settler escrow. POST the quote object you received from `,_jsx(_components.a,{href:`/api-reference/sprinter/lifi-intents/rfq`,children:_jsx(_components.code,{children:`GET /lifi-intents/rfq`})}),`; you get the same object back with `,_jsx(_components.code,{children:`transactionRequest`}),` populated.`]}),`\n`,_jsx(_components.p,{children:`Sending that transaction escrows the inputs on the origin chain and broadcasts the order to solvers.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Include the `,_jsx(_components.code,{children:`quoteId`}),` from the RFQ response. Without it the endpoint still returns valid calldata, but `,_jsx(_components.strong,{children:`no liquidity is reserved`}),` and the order is not guaranteed a Sprinter fill — you get no error saying so.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`reservation-window`,children:`Reservation window`}),`\n`,_jsxs(_components.p,{children:[`Converting a quote `,_jsx(_components.strong,{children:`refreshes its reservation to 60 seconds, counted from this call`}),` — not from the RFQ. That is the window you have to get the transaction signed and on-chain.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Held for`})}),_jsxs(_components.td,{children:[`60 seconds from the `,_jsx(_components.code,{children:`/transaction`}),` response`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Applies when`})}),_jsxs(_components.td,{children:[`The posted quote carries a `,_jsx(_components.code,{children:`quoteId`}),`. The 15-second RFQ reservation is extended to the full 60 seconds and re-keyed from the quote id to the on-chain order id`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsxs(_components.strong,{children:[`Without a `,_jsx(_components.code,{children:`quoteId`})]})}),_jsx(_components.td,{children:`Nothing is reserved and nothing is refreshed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`After it lapses`})}),_jsx(_components.td,{children:`The liquidity is released back to the pool. The calldata stays valid and the order is still fillable, but no longer guaranteed a Sprinter fill`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Reservations come out of a pool `,_jsx(_components.strong,{children:`shared with other solvers`}),`, so liquidity held against your quote is liquidity nobody else can be quoted. Each conversion holds its full amount for 60 seconds — four times the RFQ window — and the hold is not released early if you never send the transaction. Test this endpoint with small amounts: a loop over real quote sizes can take a meaningful share of a pool out of circulation a minute at a time.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`what-the-endpoint-fills-in`,children:`What the endpoint fills in`}),`\n`,_jsxs(_components.p,{children:[`You supply `,_jsx(_components.code,{children:`preview`}),`; everything else is derived:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Derived as`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`nonce`})}),_jsx(_components.td,{children:`Generated per request`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fillDeadline`})}),_jsx(_components.td,{children:`~6 minutes out — 1 minute exclusive to Sprinter, then 5 minutes open to any solver`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expires`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`fillDeadline`}),` + a settlement buffer: ~13 minutes for same-chain orders, ~12 hours for cross-chain`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`inputOracle`}),` / output oracle`]}),_jsx(_components.td,{children:`From Sprinter’s configuration`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Exclusivity`}),_jsx(_components.td,{children:`Encoded per output; defaults to Sprinter’s filler address`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`value`})}),_jsxs(_components.td,{children:[`Sum of native-token inputs, hex encoded. `,_jsx(_components.code,{children:`0x0`}),` for ERC-20-only orders`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`You can override `,_jsx(_components.code,{children:`nonce`}),`, `,_jsx(_components.code,{children:`expires`}),`, `,_jsx(_components.code,{children:`fillDeadline`}),` and `,_jsx(_components.code,{children:`inputOracle`}),` by setting them in the `,_jsx(_components.code,{children:`order`}),` object on the request, and override the exclusive filler with `,_jsx(_components.code,{children:`metadata.exclusiveFor`}),`. Leave them unset unless you have a specific reason — the defaults are what the reservation is priced against.`]}),`\n`,_jsx(Heading,{level:`2`,id:`constraints`,children:`Constraints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Every entry in `,_jsx(_components.code,{children:`preview.inputs`}),` must be on the same origin chain. Mixed origins are rejected with `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The returned transaction must be sent by `,_jsx(_components.code,{children:`transactionRequest.from`}),` — the payer named in the first input.`]}),`\n`,_jsxs(_components.li,{children:[`Send it promptly — the reservation lapses 60 seconds after this call. See `,_jsx(_components.a,{href:`#reservation-window`,children:`Reservation window`}),`.`]}),`\n`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --request POST \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --url `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.sprinter.tech/lifi-intents/transaction'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --data @quote.json`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`8`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"# `quote` is quotes[0] from the RFQ response, passed through unchanged\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response = requests.post(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.sprinter.tech/lifi-intents/transaction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` json=quote,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tx = response.json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"transactionRequest\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`18`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"// `quote` is quotes[0] from the RFQ response, passed through unchanged\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fetch(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.sprinter.tech/lifi-intents/transaction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` method: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` headers: { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` body: JSON.stringify(quote),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { transactionRequest } = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// send it from the user's wallet`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hash = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` walletClient.sendTransaction({`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` to: transactionRequest.to,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data: transactionRequest.data,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` value: BigInt(transactionRequest.value),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` chainId: transactionRequest.chainId,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`20`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`package`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"bytes\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"fmt\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"io\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"net/http\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`func`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` main() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`\t// quoteJSON is quotes[0] from the RFQ response, passed through unchanged`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\tresp, _ := http.Post(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"https://api.sprinter.tech/lifi-intents/transaction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t\tbytes.NewReader(quoteJSON),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tdefer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` resp.Body.Close()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\tbody, _ := io.ReadAll(resp.Body)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\tfmt.Println(string(body))`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`33`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`33`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"validUntil\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1754481615`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eta\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`45`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quoteId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f8a1c72-95e4-4d6b-b0a1-2c7e9f4d8a13\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sprinter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"inputs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x00010000022105141f98431c8ad98523631ae4a59f267346ea31f984\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"asset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x0001000002210514833589fcd6edb6e08f4c7c32d4f71b54bda02913\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"100000000\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"outputs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"receiver\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x0001000002a4b1141f98431c8ad98523631ae4a59f267346ea31f984\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"asset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x0001000002a4b114af88d065e77c8cc2239327c5edb3a432268e5831\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"99850000\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"exclusiveFor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x4c4A2f8c81640e47606d3fd77B353E87Ba015584\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failureHandling\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refund-automatic\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transactionRequest\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"from\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x1F98431c8aD98523631AE4a59f267346ea31F984\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x6E9a1b3F0c5D2a8B4e7C1f9A3d6B0e5C8f2A4d71\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chainId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8453`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xff2b0c2b0000000000000000000000000000000000000000000000000000000000000020\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x0\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`after-the-fill`,children:`After the fill`}),`\n`,_jsxs(_components.p,{children:[`Sprinter fills on the destination chain within the exclusivity window and is repaid when the escrow settles. If nobody fills before `,_jsx(_components.code,{children:`fillDeadline`}),`, the order is reclaimable on the escrow contract — `,_jsx(_components.code,{children:`failureHandling`}),` is `,_jsx(_components.code,{children:`refund-automatic`}),`, so nothing is stranded.`]})]})}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":"Build the Escrow Open Transaction","sidebarTitle":"Transaction","openapi":"post /lifi-intents/transaction","description":"Turns a quote into an unsigned `open` call on the LI.FI intents input settler escrow. When the quote carries a `quoteId` from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.","href":"/api-reference/sprinter/lifi-intents/transaction"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Reservation window","slug":"reservation-window","depth":2,"children":[]},{"title":"What the endpoint fills in","slug":"what-the-endpoint-fills-in","depth":2,"children":[]},{"title":"Constraints","slug":"constraints","depth":2,"children":[]},{"title":"After the fill","slug":"after-the-fill","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> --request POST \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> --url \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'https://api.sprinter.tech/lifi-intents/transaction'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> --header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> --data @quote.json\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># `quote` is quotes[0] from the RFQ response, passed through unchanged\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response = requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.sprinter.tech/lifi-intents/transaction\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> json=quote,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">tx = response.json()[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"transactionRequest\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"18\">\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// `quote` is quotes[0] from the RFQ response, passed through unchanged\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">const\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response = \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> fetch(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.sprinter.tech/lifi-intents/transaction\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> method: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> headers: { \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> body: JSON.stringify(quote),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">const\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { transactionRequest } = \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.json();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// send it from the user's wallet\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">const\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> hash = \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> walletClient.sendTransaction({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> to: transactionRequest.to,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> data: transactionRequest.data,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> value: BigInt(transactionRequest.value),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> chainId: transactionRequest.chainId,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Go","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"go\">\u003ccode language=\"go\" numberOfLines=\"20\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">package\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> main\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"bytes\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"fmt\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"io\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"net/http\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">func\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> main() {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">\t// quoteJSON is quotes[0] from the RFQ response, passed through unchanged\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\tresp, _ := http.Post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\t\"https://api.sprinter.tech/lifi-intents/transaction\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\t\"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\t\tbytes.NewReader(quoteJSON),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\t)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">\tdefer\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> resp.Body.Close()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\tbody, _ := io.ReadAll(resp.Body)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\tfmt.Println(string(body))\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"33\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"validUntil\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1754481615\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"eta\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">45\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"quoteId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3f8a1c72-95e4-4d6b-b0a1-2c7e9f4d8a13\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"provider\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"sprinter\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"preview\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"inputs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0x00010000022105141f98431c8ad98523631ae4a59f267346ea31f984\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"asset\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0x0001000002210514833589fcd6edb6e08f4c7c32d4f71b54bda02913\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"100000000\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"outputs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"receiver\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0x0001000002a4b1141f98431c8ad98523631ae4a59f267346ea31f984\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"asset\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0x0001000002a4b114af88d065e77c8cc2239327c5edb3a432268e5831\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"99850000\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"exclusiveFor\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0x4c4A2f8c81640e47606d3fd77B353E87Ba015584\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"failureHandling\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"refund-automatic\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transactionRequest\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"from\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0x1F98431c8aD98523631AE4a59f267346ea31F984\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"to\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0x6E9a1b3F0c5D2a8B4e7C1f9A3d6B0e5C8f2A4d71\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"chainId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">8453\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0xff2b0c2b0000000000000000000000000000000000000000000000000000000000000020\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0x0\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Turns a quote into an unsigned `open` call on the LI.FI intents input settler escrow. When the quote carries a `quoteId` from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.","tags":["Liquidity"],"summary":"Build the escrow open transaction for a lifi-intents quote","requestBody":"4c00659a-c135-4cd4-98fc-2aa157c21075","responses":{"200":"aadd4e0d-d670-4dd3-a760-b1210f9fc554","400":"8d302e7c-bc9e-4e5a-a59c-a572095cf983","500":"04ac4f12-09c4-42c2-b5a7-318eee330837"},"method":"post","type":"path","servers":["3316b634-a1f2-49cf-b518-3268722b7b48"],"security":[],"path":"/lifi-intents/transaction","baseUrlOptions":["https://api.sprinter.tech"],"title":"Build the escrow open transaction for a lifi-intents quote","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"4","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" --request POST \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" --url "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'https://api.sprinter.tech/lifi-intents/transaction'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" --header "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Content-Type: application/json'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" --data @quote.json"}}}},"\n"]}}}},"filename":"cURL"},{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"8","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" requests"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"# `quote` is quotes[0] from the RFQ response, passed through unchanged"}}}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"response = requests.post("}}}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://api.sprinter.tech/lifi-intents/transaction\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" json=quote,"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"tx = response.json()["}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"transactionRequest\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]"}}]}},"\n"]}}}},"filename":"Python"},{"dropdown":false,"language":"javascript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"javascript","children":{"type":"code","key":null,"ref":null,"props":{"language":"javascript","numberOfLines":"18","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"// `quote` is quotes[0] from the RFQ response, passed through unchanged"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" response = "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"await"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" fetch("}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://api.sprinter.tech/lifi-intents/transaction\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" method: "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"POST\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" headers: { "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Content-Type\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"application/json\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" body: JSON.stringify(quote),"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { transactionRequest } = "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"await"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" response.json();"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"// send it from the user's wallet"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" hash = "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"await"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" walletClient.sendTransaction({"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" to: transactionRequest.to,"}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" data: transactionRequest.data,"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" value: BigInt(transactionRequest.value),"}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" chainId: transactionRequest.chainId,"}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n"]}}}},"filename":"JavaScript"},{"dropdown":false,"language":"go","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"go","children":{"type":"code","key":null,"ref":null,"props":{"language":"go","numberOfLines":"20","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"package"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" main"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ("}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\"bytes\""}}}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\"fmt\""}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\"io\""}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\"net/http\""}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"func"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" main() {"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"\t// quoteJSON is quotes[0] from the RFQ response, passed through unchanged"}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\tresp, _ := http.Post("}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\t\"https://api.sprinter.tech/lifi-intents/transaction\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\t\"application/json\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\t\tbytes.NewReader(quoteJSON),"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\t)"}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"\tdefer"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" resp.Body.Close()"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\tbody, _ := io.ReadAll(resp.Body)"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\tfmt.Println(string(body))"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Go"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"33","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"validUntil\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"1754481615"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"eta\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"45"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"quoteId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"3f8a1c72-95e4-4d6b-b0a1-2c7e9f4d8a13\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"provider\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"sprinter\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"preview\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"inputs\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": ["}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"user\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0x00010000022105141f98431c8ad98523631ae4a59f267346ea31f984\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"asset\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0x0001000002210514833589fcd6edb6e08f4c7c32d4f71b54bda02913\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"amount\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"100000000\""}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ],"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"outputs\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": ["}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"receiver\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0x0001000002a4b1141f98431c8ad98523631ae4a59f267346ea31f984\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"asset\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0x0001000002a4b114af88d065e77c8cc2239327c5edb3a432268e5831\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"amount\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"99850000\""}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ]"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"metadata\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"exclusiveFor\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0x4c4A2f8c81640e47606d3fd77B353E87Ba015584\""}}]}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"failureHandling\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"refund-automatic\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"transactionRequest\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"from\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0x1F98431c8aD98523631AE4a59f267346ea31F984\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"to\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0x6E9a1b3F0c5D2a8B4e7C1f9A3d6B0e5C8f2A4d71\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"56","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"chainId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"8453"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"58","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0xff2b0c2b0000000000000000000000000000000000000000000000000000000000000020\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"60","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"value\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0x0\""}}]}},"\n",{"type":"span","key":"62","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"64","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"200"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{},"requestBody":{"description":"A quote from the RFQ response","required":true,"content":{"application/json":{"schema":{"type":"object","required":["preview"],"properties":{"preview":{"type":"object","required":["inputs","outputs"],"properties":{"inputs":{"type":"array","minItems":1,"description":"Tokens escrowed on the origin chain. Every input must sit on the same origin chain.","items":{"type":"object","required":["amount","asset","user"],"properties":{"user":{"type":"string","description":"Payer, as an ERC-7930 interoperable address.","isRequired":true,"uniqueKey":"preview.inputs.items.[INDEX].user","typeLabel":"string"},"asset":{"type":"string","description":"Input token, as an ERC-7930 interoperable address.","isRequired":true,"uniqueKey":"preview.inputs.items.[INDEX].asset","typeLabel":"string"},"amount":{"type":"string","description":"Amount in the smallest denomination.","isRequired":true,"uniqueKey":"preview.inputs.items.[INDEX].amount","typeLabel":"string"}},"uniqueKey":"preview.inputs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"preview.inputs","typeLabel":"object[]"},"outputs":{"type":"array","minItems":1,"description":"Tokens delivered to the receiver.","items":{"type":"object","required":["amount","asset","receiver"],"properties":{"receiver":{"type":"string","description":"Recipient, as an ERC-7930 interoperable address.","isRequired":true,"uniqueKey":"preview.outputs.items.[INDEX].receiver","typeLabel":"string"},"asset":{"type":"string","description":"Output token, as an ERC-7930 interoperable address.","isRequired":true,"uniqueKey":"preview.outputs.items.[INDEX].asset","typeLabel":"string"},"amount":{"type":"string","description":"Amount in the smallest denomination.","isRequired":true,"uniqueKey":"preview.outputs.items.[INDEX].amount","typeLabel":"string"}},"uniqueKey":"preview.outputs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"preview.outputs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"preview","typeLabel":"object"},"quoteId":{"type":"string","description":"Identifier for the liquidity reservation backing this quote. Pass the quote back to /lifi-intents/transaction to keep it.","uniqueKey":"quoteId","typeLabel":"string"},"validUntil":{"type":"integer","description":"Unix timestamp after which the quote and its reservation expire.","uniqueKey":"validUntil","typeLabel":"integer"},"eta":{"type":"integer","description":"Estimated fill duration in seconds.","uniqueKey":"eta","typeLabel":"integer"},"provider":{"type":"string","description":"Always `sprinter`.","uniqueKey":"provider","typeLabel":"string"},"failureHandling":{"type":"string","description":"Always `refund-automatic` — an unfilled order is reclaimable on the escrow.","uniqueKey":"failureHandling","typeLabel":"string"},"partialFill":{"type":"boolean","description":"Whether the order may be partially filled. Sprinter quotes are all-or-nothing.","uniqueKey":"partialFill","typeLabel":"boolean"},"metadata":{"type":"object","properties":{"exclusiveFor":{"type":"string","description":"Address granted exclusivity over the fill. Defaults to Sprinter's filler address.","uniqueKey":"metadata.exclusiveFor","typeLabel":"string"}},"uniqueKey":"metadata","typeLabel":"object"},"order":{"type":"object","description":"Optional overrides for the escrow open call. Any field left unset is derived by the transaction endpoint.","properties":{"nonce":{"type":"string","uniqueKey":"order.nonce","typeLabel":"string"},"expires":{"type":"integer","description":"Unix timestamp after which the order can no longer settle.","uniqueKey":"order.expires","typeLabel":"integer"},"fillDeadline":{"type":"integer","description":"Unix timestamp after which the order can no longer be filled.","uniqueKey":"order.fillDeadline","typeLabel":"integer"},"inputOracle":{"type":"string","uniqueKey":"order.inputOracle","typeLabel":"string"}},"uniqueKey":"order","typeLabel":"object"},"transactionRequest":{"type":"object","description":"Unsigned transaction calling open() on the input settler escrow. Send it from the user's wallet.","required":["chainId","data","from","to","value"],"properties":{"from":{"type":"string","isRequired":true,"uniqueKey":"transactionRequest.from","typeLabel":"string"},"to":{"type":"string","description":"The LI.FI input settler escrow contract.","isRequired":true,"uniqueKey":"transactionRequest.to","typeLabel":"string"},"chainId":{"type":"integer","isRequired":true,"uniqueKey":"transactionRequest.chainId","typeLabel":"integer"},"data":{"type":"string","isRequired":true,"uniqueKey":"transactionRequest.data","typeLabel":"string"},"value":{"type":"string","description":"Hex-encoded native value; `0x0` unless an input is the native token.","isRequired":true,"uniqueKey":"transactionRequest.value","typeLabel":"string"},"gasPrice":{"type":"string","uniqueKey":"transactionRequest.gasPrice","typeLabel":"string"},"gasLimit":{"type":"string","uniqueKey":"transactionRequest.gasLimit","typeLabel":"string"}},"uniqueKey":"transactionRequest","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"preview":{"inputs":[{"user":"\u003cstring>","asset":"\u003cstring>","amount":"\u003cstring>"}],"outputs":[{"receiver":"\u003cstring>","asset":"\u003cstring>","amount":"\u003cstring>"}]},"quoteId":"\u003cstring>","validUntil":123,"eta":123,"provider":"\u003cstring>","failureHandling":"\u003cstring>","partialFill":true,"metadata":{"exclusiveFor":"\u003cstring>"},"order":{"nonce":"\u003cstring>","expires":123,"fillDeadline":123,"inputOracle":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"aadd4e0d-d670-4dd3-a760-b1210f9fc554":{"description":"The same quote with transactionRequest populated","content":{"application/json":{"schema":{"type":"object","required":["preview"],"properties":{"preview":{"type":"object","required":["inputs","outputs"],"properties":{"inputs":{"type":"array","minItems":1,"description":"Tokens escrowed on the origin chain. Every input must sit on the same origin chain.","items":{"type":"object","required":["amount","asset","user"],"properties":{"user":{"type":"string","description":"Payer, as an ERC-7930 interoperable address.","isRequired":true,"uniqueKey":"preview.inputs.items.[INDEX].user","typeLabel":"string"},"asset":{"type":"string","description":"Input token, as an ERC-7930 interoperable address.","isRequired":true,"uniqueKey":"preview.inputs.items.[INDEX].asset","typeLabel":"string"},"amount":{"type":"string","description":"Amount in the smallest denomination.","isRequired":true,"uniqueKey":"preview.inputs.items.[INDEX].amount","typeLabel":"string"}},"uniqueKey":"preview.inputs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"preview.inputs","typeLabel":"object[]"},"outputs":{"type":"array","minItems":1,"description":"Tokens delivered to the receiver.","items":{"type":"object","required":["amount","asset","receiver"],"properties":{"receiver":{"type":"string","description":"Recipient, as an ERC-7930 interoperable address.","isRequired":true,"uniqueKey":"preview.outputs.items.[INDEX].receiver","typeLabel":"string"},"asset":{"type":"string","description":"Output token, as an ERC-7930 interoperable address.","isRequired":true,"uniqueKey":"preview.outputs.items.[INDEX].asset","typeLabel":"string"},"amount":{"type":"string","description":"Amount in the smallest denomination.","isRequired":true,"uniqueKey":"preview.outputs.items.[INDEX].amount","typeLabel":"string"}},"uniqueKey":"preview.outputs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"preview.outputs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"preview","typeLabel":"object"},"quoteId":{"type":"string","description":"Identifier for the liquidity reservation backing this quote. Pass the quote back to /lifi-intents/transaction to keep it.","uniqueKey":"quoteId","typeLabel":"string"},"validUntil":{"type":"integer","description":"Unix timestamp after which the quote and its reservation expire.","uniqueKey":"validUntil","typeLabel":"integer"},"eta":{"type":"integer","description":"Estimated fill duration in seconds.","uniqueKey":"eta","typeLabel":"integer"},"provider":{"type":"string","description":"Always `sprinter`.","uniqueKey":"provider","typeLabel":"string"},"failureHandling":{"type":"string","description":"Always `refund-automatic` — an unfilled order is reclaimable on the escrow.","uniqueKey":"failureHandling","typeLabel":"string"},"partialFill":{"type":"boolean","description":"Whether the order may be partially filled. Sprinter quotes are all-or-nothing.","uniqueKey":"partialFill","typeLabel":"boolean"},"metadata":{"type":"object","properties":{"exclusiveFor":{"type":"string","description":"Address granted exclusivity over the fill. Defaults to Sprinter's filler address.","uniqueKey":"metadata.exclusiveFor","typeLabel":"string"}},"uniqueKey":"metadata","typeLabel":"object"},"order":{"type":"object","description":"Optional overrides for the escrow open call. Any field left unset is derived by the transaction endpoint.","properties":{"nonce":{"type":"string","uniqueKey":"order.nonce","typeLabel":"string"},"expires":{"type":"integer","description":"Unix timestamp after which the order can no longer settle.","uniqueKey":"order.expires","typeLabel":"integer"},"fillDeadline":{"type":"integer","description":"Unix timestamp after which the order can no longer be filled.","uniqueKey":"order.fillDeadline","typeLabel":"integer"},"inputOracle":{"type":"string","uniqueKey":"order.inputOracle","typeLabel":"string"}},"uniqueKey":"order","typeLabel":"object"},"transactionRequest":{"type":"object","description":"Unsigned transaction calling open() on the input settler escrow. Send it from the user's wallet.","required":["chainId","data","from","to","value"],"properties":{"from":{"type":"string","isRequired":true,"uniqueKey":"transactionRequest.from","typeLabel":"string"},"to":{"type":"string","description":"The LI.FI input settler escrow contract.","isRequired":true,"uniqueKey":"transactionRequest.to","typeLabel":"string"},"chainId":{"type":"integer","isRequired":true,"uniqueKey":"transactionRequest.chainId","typeLabel":"integer"},"data":{"type":"string","isRequired":true,"uniqueKey":"transactionRequest.data","typeLabel":"string"},"value":{"type":"string","description":"Hex-encoded native value; `0x0` unless an input is the native token.","isRequired":true,"uniqueKey":"transactionRequest.value","typeLabel":"string"},"gasPrice":{"type":"string","uniqueKey":"transactionRequest.gasPrice","typeLabel":"string"},"gasLimit":{"type":"string","uniqueKey":"transactionRequest.gasLimit","typeLabel":"string"}},"uniqueKey":"transactionRequest","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"preview":{"inputs":[{"user":"\u003cstring>","asset":"\u003cstring>","amount":"\u003cstring>"}],"outputs":[{"receiver":"\u003cstring>","asset":"\u003cstring>","amount":"\u003cstring>"}]},"quoteId":"\u003cstring>","validUntil":123,"eta":123,"provider":"\u003cstring>","failureHandling":"\u003cstring>","partialFill":true,"metadata":{"exclusiveFor":"\u003cstring>"},"order":{"nonce":"\u003cstring>","expires":123,"fillDeadline":123,"inputOracle":"\u003cstring>"},"transactionRequest":{"from":"\u003cstring>","to":"\u003cstring>","chainId":123,"data":"\u003cstring>","value":"\u003cstring>","gasPrice":"\u003cstring>","gasLimit":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"8d302e7c-bc9e-4e5a-a59c-a572095cf983":{"description":"Bad request due to invalid input","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"debug":{"type":"string","uniqueKey":"debug","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","debug":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"04ac4f12-09c4-42c2-b5a7-318eee330837":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"debug":{"type":"string","uniqueKey":"debug","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","debug":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"3316b634-a1f2-49cf-b518-3268722b7b48":{"url":"https://api.sprinter.tech","description":"Production server"}}},"originalFileLocation":"api-reference/sprinter/openapi.json"},"subdomain":"sprinter-1ab1fed0","siteName":"Credit runs on Sprinter","title":"Build the Escrow Open Transaction - Credit runs on Sprinter","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-12T13:55:39.898Z","originalFileLocation":"api-reference/sprinter/lifi-intents/transaction.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"Turns a quote into an unsigned open call on the LI.FI intents input settler escrow. When the quote carries a quoteId from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Credit runs on Sprinter\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_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/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_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/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_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/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_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/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_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/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_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/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_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/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Build the Escrow Open Transaction - Credit runs on Sprinter\">\u003cmeta data-mint-head property=\"og:description\" content=\"Turns a quote into an unsigned open call on the LI.FI intents input settler escrow. When the quote carries a quoteId from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Credit runs on Sprinter\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sprinter-1ab1fed0.mintlify.site/_mintlify/api/og/v2?division=LI.FI+Intents\u0026amp;title=Build+the+Escrow+Open+Transaction\u0026amp;description=Turns+a+quote+into+an+unsigned+%60open%60+call+on+the+LI.FI+intents+input+settler+escrow.+When+the+quote+carries+a+%60quoteId%60+from+the+RFQ+endpoint%2C+the+liquidity+re\u0026amp;theme=f30929862a54c97a6182ba8c\u0026amp;signature=d4d13af40d0f796d17b62771fc0fedfe52fdf9f49e971fd98ea59f9686dd49a3\">\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=\"Build the Escrow Open Transaction - Credit runs on Sprinter\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Turns a quote into an unsigned open call on the LI.FI intents input settler escrow. When the quote carries a quoteId from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sprinter-1ab1fed0.mintlify.site/_mintlify/api/og/v2?division=LI.FI+Intents\u0026amp;title=Build+the+Escrow+Open+Transaction\u0026amp;description=Turns+a+quote+into+an+unsigned+%60open%60+call+on+the+LI.FI+intents+input+settler+escrow.+When+the+quote+carries+a+%60quoteId%60+from+the+RFQ+endpoint%2C+the+liquidity+re\u0026amp;theme=f30929862a54c97a6182ba8c\u0026amp;signature=d4d13af40d0f796d17b62771fc0fedfe52fdf9f49e971fd98ea59f9686dd49a3\">\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/sprinter-1ab1fed0/EGJ_CfN59mUD2cNJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Credit runs on Sprinter\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF5100\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/sprinter/lifi-intents/transaction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sprinter.tech/#organization\",\"name\":\"Credit runs on Sprinter\",\"url\":\"https://docs.sprinter.tech\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sprinter-1ab1fed0/QenxOo-sSJTAjrWq/logo/light.svg?fit=max\u0026auto=format\u0026n=QenxOo-sSJTAjrWq\u0026q=85\u0026s=b597af07f9924dfd997c717bd3ca45fc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sprinter.tech#website\",\"name\":\"Credit runs on Sprinter\",\"url\":\"https://docs.sprinter.tech\",\"publisher\":{\"@id\":\"https://docs.sprinter.tech/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction#webpage\",\"url\":\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction\",\"name\":\"Build the Escrow Open Transaction\",\"description\":\"Turns a quote into an unsigned open call on the LI.FI intents input settler escrow. When the quote carries a quoteId from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.\",\"dateModified\":\"2026-08-12T13:55:39.898Z\",\"isPartOf\":{\"@id\":\"https://docs.sprinter.tech#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Solve RFQ\",\"item\":\"https://docs.sprinter.tech/api-reference/solve-rfq/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LI.FI Intents\",\"item\":\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/rfq\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Build the Escrow Open Transaction\",\"item\":\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction#apireference\",\"headline\":\"Build the Escrow Open Transaction\",\"name\":\"Build the Escrow Open Transaction\",\"description\":\"Turns a quote into an unsigned open call on the LI.FI intents input settler escrow. When the quote carries a quoteId from the RFQ endpoint, the liquidity reservation is re-keyed to the resulting on-chain order id.\",\"url\":\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sprinter.tech/api-reference/sprinter/lifi-intents/transaction#webpage\"},\"dateModified\":\"2026-08-12T13:55:39.898Z\",\"publisher\":{\"@id\":\"https://docs.sprinter.tech/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sprinter.tech#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Credit runs on Sprinter\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Credit runs on Sprinter\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/sprinter/lifi-intents/transaction.md","siteName":"Credit runs on Sprinter","nav":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/sprintertech","icon":"github"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Sprinter API","groups":[{"group":"Credit","pages":[{"title":"Overview","href":"/api-reference/sprinter/credit/overview"},{"group":"Credit Info","pages":[{"title":"Protocol Configuration","sidebarTitle":"Protocol Configuration","openapi":"get /credit/protocol","href":"/api-reference/sprinter/credit/get-credit-protocol-configuration"},{"title":"Credit Account Info","sidebarTitle":"Credit Account Info","openapi":"get /credit/accounts/{account}/info","href":"/api-reference/sprinter/credit/get-user-credit-information"},{"title":"Collateral Details","sidebarTitle":"Collateral Details","openapi":"get /credit/v2/assets/{asset}/collateral/{chain}/{collateral}","href":"/api-reference/sprinter/credit/get-collateral-asset-details"},{"title":"Operator Status","sidebarTitle":"Operator Status","openapi":"get /credit/v2/accounts/{account}/assets/{asset}/operator","href":"/api-reference/sprinter/credit/get-operator-status-for-an-account"}]},{"group":"Credit Actions","pages":[{"title":"Lock Collateral","sidebarTitle":"Lock Collateral","openapi":"get /credit/v2/accounts/{account}/assets/{asset}/lock","href":"/api-reference/sprinter/credit/calldata-to-lock-asset-as-collateral"},{"title":"Unlock Collateral","sidebarTitle":"Unlock Collateral","openapi":"get /credit/v2/accounts/{account}/assets/{asset}/unlock","href":"/api-reference/sprinter/credit/call-data-to-unlock-collateral"},{"title":"Draw Credit","sidebarTitle":"Draw Credit","openapi":"get /credit/v2/accounts/{account}/assets/{asset}/draw","href":"/api-reference/sprinter/credit/build-transaction-calls-to-draw-credit"},{"title":"Repay Debt","sidebarTitle":"Repay Debt","openapi":"get /credit/v2/accounts/{account}/assets/{asset}/repay","href":"/api-reference/sprinter/credit/call-data-to-repay-credit-debt"}]},{"group":"Credit Advanced","pages":[{"title":"Enable Auto Top-Up","sidebarTitle":"Enable Auto Top-Up","openapi":"get /credit/v2/accounts/{account}/assets/{asset}/operator/auto-topup/enable","href":"/api-reference/sprinter/credit/build-transaction-calls-to-enable-auto-top-up"},{"title":"Disable Auto Top-Up","sidebarTitle":"Disable Auto Top-Up","openapi":"get /credit/v2/accounts/{account}/assets/{asset}/operator/auto-topup/disable","href":"/api-reference/sprinter/credit/build-transaction-calls-to-disable-auto-top-up"},{"title":"Get Auto Top-Up Config","sidebarTitle":"Get Auto Top-Up Config","openapi":"get /credit/v2/accounts/{account}/assets/{asset}/operator/auto-topup/config","href":"/api-reference/sprinter/credit/get-auto-topup-config"},{"title":"Update Auto Top-Up","sidebarTitle":"Update Auto Top-Up","openapi":"get /credit/v2/accounts/{account}/assets/{asset}/operator/auto-topup/update","href":"/api-reference/sprinter/credit/update-auto-top-up"},{"title":"Wrap into Earn Vault","sidebarTitle":"Wrap into Earn Vault","openapi":"get /credit/earn/wrap","href":"/api-reference/sprinter/credit/wrap-asset-into-earn-vault"},{"title":"Unwrap from Earn Vault","sidebarTitle":"Unwrap from Earn Vault","openapi":"get /credit/earn/unwrap","href":"/api-reference/sprinter/credit/unwrap-position-from-earn-vault"},{"title":"Claim from Earn Vault","sidebarTitle":"Claim from Earn Vault","openapi":"get /credit/earn/claim","href":"/api-reference/sprinter/credit/claim-position-from-earn-vault"}]}]},{"group":"Liquidity","pages":[{"title":"Overview","href":"/api-reference/sprinter/liquidity/overview"},{"group":"Liquidity Info","pages":[{"title":"Returns Supported Tokens for a Chain","sidebarTitle":"Supported Tokens","openapi":"get /liquidity/chain/{chainId}/tokens","href":"/api-reference/sprinter/liquidity/returns-supported-tokens-for-a-chain"},{"title":"Get Available Liquidity for a Specific Pool Type on a Chain","sidebarTitle":"Available Liquidity","openapi":"get /liquidity/pools/{poolType}","href":"/api-reference/sprinter/liquidity/get-available-liquidity-for-a-specific-pool-type-on-a-chain"},{"title":"Stream Available Liquidity Updates via SSE","sidebarTitle":"Stream Liquidity Updates","openapi":"get /liquidity/protocol/{protocol}/events","href":"/api-reference/sprinter/liquidity/stream-available-liquidity-updates-via-sse"},{"title":"Get Fee and Limits for a Given Protocol Route","sidebarTitle":"Fees \u0026 Limits","openapi":"get /liquidity/protocol/{protocol}/fees","href":"/api-reference/sprinter/liquidity/get-fee-and-limits-for-a-given-protocol-route"},{"title":"Returns Solver Address","sidebarTitle":"Solver Address","openapi":"get /protocol/{protocol}/solver","href":"/api-reference/sprinter/returns-solver-address"},{"title":"Health Check","sidebarTitle":"Health Check","openapi":"get /health","href":"/api-reference/sprinter/health-check"}]},{"group":"Liquidity Actions","pages":[{"title":"Get the Borrow Quote for a Liquidity Transaction","sidebarTitle":"Borrow Quote","openapi":"get /liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote","href":"/api-reference/sprinter/liquidity/get-the-borrow-quote-for-a-liquidity-transaction-based-on-the-input-data"},{"title":"Get Signing Authorization for a Liquidity Transaction","sidebarTitle":"Liquidity Signature","openapi":"post /liquidity/v2/chain/{dstChain}/protocol/{protocol}/signature","href":"/api-reference/sprinter/liquidity/get-signing-authorization-for-a-liquidity-transaction"}]}]},{"group":"Solve RFQ","pages":[{"title":"Overview","href":"/api-reference/solve-rfq/overview"},{"group":"LI.FI Intents","pages":[{"title":"Request a LI.FI Intents Quote","sidebarTitle":"RFQ","openapi":"get /lifi-intents/rfq","description":"Prices a LI.FI intents order against Sprinter liquidity and reserves that liquidity for the quote's validity window. The response is shaped like a single element of LI.FI's own request-quote response.","href":"/api-reference/sprinter/lifi-intents/rfq"},{"title":"Build the Escrow Open Transaction","sidebarTitle":"Transaction","openapi":"post /lifi-intents/transaction","href":"/api-reference/sprinter/lifi-intents/transaction"}]},{"group":"Swap API","pages":[{"title":"Overview","description":"API reference for Sprinter Solve — request an optimal swap route and execute the returned call data","href":"/api-reference/solve/overview"},{"title":"Route","openapi":"get /v1/route","href":"/api-reference/solve/get-v1route"}]}]}]}]},"basePath":"","title":"Build the Escrow Open Transaction - Credit runs on Sprinter","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","Page-D6S0Yh6q.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}