{ "error": { "code": "MH_035", "message": "Transfer not in a state that allows this operation — Transfer is completed; there is nothing left to prepare" }}
{ "error": { "code": "MH_035", "message": "Transfer not in a state that allows this operation — Transfer is completed; there is nothing left to prepare" }}
Probes on-chain state and returns the full bundle of unsigned Solana transactions that sourceOwner must sign and broadcast to deploy the transfer.This endpoint is resumable — re-call it after a partial broadcast to get a fresh blockhash and drop any groups already confirmed on-chain (null fields are already on chain, skip them).
On compliance-enabled networks (mainnet) the orchestrator-init transaction includes the
screening fee: 0.002 SOL for each wallet the route screens. It is part of /estimate
(sol.breakdown.screeningFeeLamports, counted in requiredSolUpFrontLamports). Ensure the
sourceOwner wallet holds requiredSolUpFrontLamports plus the transfer amount before signing.
The fee pays for the screen and is not refunded, whether the route is clean or flagged. See
Compliance & screening.
Before building anything, /prepare re-checks the quoted fee tier against the pool price the program
will read. If the price has crossed a tier boundary since the quote, it returns MH_040: create a
new transfer to re-quote. See Pricing & revenue share.A transfer that is already completed, refunded or expired has nothing left to prepare:
/prepare returns MH_035 (409) and no transactions, so a finished transfer can never be funded
twice.
Path parameters
integer
required
The internal transfer ID.
Response
object
Current transfer state.
object
Bundle of unsigned transactions to sign and broadcast.
Show preparedTxs fields
string | null
Broadcast FIRST. Base64 VersionedTransaction that transfers SOL to the assigned keeper. null if keeper is already funded.
If your client broadcast it but crashed before confirm-broadcast, just call /prepare again:
the landed funding is found on chain and recorded, and you are not asked to pay it twice.
array
Array of { base64 } VersionedTransactions to initialize the on-chain route. Empty if route is already deployed.
string | null
Base64 legacy Transaction to initialize the orchestrator config PDA. null if already initialized.
array
Array of base64 VersionedTransactions to initialize step state PDAs. Entries for already-initialized steps are omitted.
array
Multi-destination transfers only (always [] otherwise). Base64
VersionedTransactions that set up the payout orchestrator, one committed step per destination,
and the route’s exit binding. Signed by sourceOwner only. Broadcast afterrouteInitTxs,
in order. Pieces already on chain are omitted.
string
Blockhash used to build these transactions. Sign and broadcast before this expires (~60s).
integer
Last block height at which these transactions are valid.
object
Snapshot of on-chain state used to build the bundle.
{ "error": { "code": "MH_035", "message": "Transfer not in a state that allows this operation — Transfer is completed; there is nothing left to prepare" }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MultiHopper","colors":{"primary":"#7E7F83","light":"#FBFF69","dark":"#7E7F83"},"logo":{"light":"https://mintcdn.com/multihopper/KSAYi9GJphQC0KJt/logo/wordmark-dark-alt.png?fit=max\u0026auto=format\u0026n=KSAYi9GJphQC0KJt\u0026q=85\u0026s=9e4e3c017c9067cd8d58f31d419afd03","dark":"https://mintcdn.com/multihopper/KSAYi9GJphQC0KJt/logo/dark.png?fit=max\u0026auto=format\u0026n=KSAYi9GJphQC0KJt\u0026q=85\u0026s=bf3cf9d38d1c0c7684e0331bf5b87b1a"},"favicon":"https://mintcdn.com/multihopper/KSAYi9GJphQC0KJt/favicon.png?fit=max\u0026auto=format\u0026n=KSAYi9GJphQC0KJt\u0026q=85\u0026s=306ab6d5602b40d14c095c527f43901d","navbar":{"links":[{"href":"mailto:support@multihopper.com","label":"Support"}],"primary":{"type":"button","label":"Launch App","href":"https://multihopper.com"}},"footer":{"socials":{"github":"https://github.com/MultiHopper1"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"App","icon":"arrow-up-right-from-square","href":"https://multihopper.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/MultiHopper1"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"multihopper","hasAudioNarration":false,"actualSubdomain":"multihopper","customDomains":["dev-docs.multihopper.com"],"gitSource":{"type":"github","owner":"multihopper1","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae18c27a5bfb7f192864578","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"Overview","count":17},{"language":"default","tag":"API Reference","count":14},{"language":"default","tag":"Concepts","count":7},{"language":"default","tag":"Transfers","count":6},{"language":"default","tag":"Webhooks","count":4},{"language":"default","tag":"Guides","count":4},{"language":"default","tag":"Getting started","count":3},{"language":"default","tag":"Protocol","count":3},{"language":"default","tag":"Custom routes","count":2},{"language":"default","tag":"API documentation","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","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},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/transfers/prepare","slug":"/api-reference/transfers/prepare","pageMetadata":{"title":"Prepare Transactions","description":"Build the unsigned transaction bundle for a transfer","api":"POST /api/v1/transfers/{transferId}/prepare","href":"/api-reference/transfers/prepare"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Build the unsigned transaction bundle for a transfer\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Probes on-chain state and returns the full bundle of unsigned Solana transactions that `,_jsx(_components.code,{children:`sourceOwner`}),` must sign and broadcast to deploy the transfer.`]}),`\n`,_jsxs(_components.p,{children:[`This endpoint is `,_jsx(_components.strong,{children:`resumable`}),` — re-call it after a partial broadcast to get a fresh blockhash and drop any groups already confirmed on-chain (`,_jsx(_components.code,{children:`null`}),` fields are already on chain, skip them).`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`On compliance-enabled networks (mainnet) the orchestrator-init transaction includes the\n`,_jsx(_components.strong,{children:`screening fee`}),`: 0.002 SOL for each wallet the route screens. It is part of `,_jsx(_components.code,{children:`/estimate`}),`\n(`,_jsx(_components.code,{children:`sol.breakdown.screeningFeeLamports`}),`, counted in `,_jsx(_components.code,{children:`requiredSolUpFrontLamports`}),`). Ensure the\n`,_jsx(_components.code,{children:`sourceOwner`}),` wallet holds `,_jsx(_components.code,{children:`requiredSolUpFrontLamports`}),` plus the transfer amount before signing.\nThe fee pays for the screen and is `,_jsx(_components.strong,{children:`not refunded`}),`, whether the route is clean or flagged. See\n`,_jsx(_components.a,{href:`/concepts/compliance`,children:`Compliance \u0026 screening`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Before building anything, `,_jsx(_components.code,{children:`/prepare`}),` re-checks the quoted fee tier against the pool price the program\nwill read. If the price has crossed a tier boundary since the quote, it returns `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`MH_040`})}),`: create a\nnew transfer to re-quote. See `,_jsx(_components.a,{href:`/concepts/pricing`,children:`Pricing \u0026 revenue share`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A transfer that is already `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`refunded`}),` or `,_jsx(_components.code,{children:`expired`}),` has nothing left to prepare:\n`,_jsx(_components.code,{children:`/prepare`}),` returns `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`MH_035`})}),` (409) and no transactions, so a finished transfer can never be funded\ntwice.`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`transferId`,type:`integer`,required:true,id:`param-transfer-id`,children:_jsx(_components.p,{children:`The internal transfer ID.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`transfer`,type:`object`,id:`param-transfer`,children:_jsx(_components.p,{children:`Current transfer state.`})}),`\n`,_jsxs(ResponseField,{name:`preparedTxs`,type:`object`,id:`param-prepared-txs`,children:[_jsx(_components.p,{children:`Bundle of unsigned transactions to sign and broadcast.`}),_jsxs(Expandable,{title:`preparedTxs fields`,children:[_jsx(ResponseField,{name:`preparedTxs.keeperFundingTx`,type:`string | null`,id:`param-prepared-txs-keeper-funding-tx`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Broadcast FIRST.`}),` Base64 VersionedTransaction that transfers SOL to the assigned keeper. `,_jsx(_components.code,{children:`null`}),` if keeper is already funded.\nIf your client broadcast it but crashed before `,_jsx(_components.code,{children:`confirm-broadcast`}),`, just call `,_jsx(_components.code,{children:`/prepare`}),` again:\nthe landed funding is found on chain and recorded, and you are not asked to pay it twice.`]})}),_jsx(ResponseField,{name:`preparedTxs.routeInitTxs`,type:`array`,id:`param-prepared-txs-route-init-txs`,children:_jsxs(_components.p,{children:[`Array of `,_jsx(_components.code,{children:`{ base64 }`}),` VersionedTransactions to initialize the on-chain route. Empty if route is already deployed.`]})}),_jsx(ResponseField,{name:`preparedTxs.orchestratorInitTx`,type:`string | null`,id:`param-prepared-txs-orchestrator-init-tx`,children:_jsxs(_components.p,{children:[`Base64 legacy Transaction to initialize the orchestrator config PDA. `,_jsx(_components.code,{children:`null`}),` if already initialized.`]})}),_jsx(ResponseField,{name:`preparedTxs.sessionInitTxs`,type:`array`,id:`param-prepared-txs-session-init-txs`,children:_jsx(_components.p,{children:`Array of base64 VersionedTransactions to initialize step state PDAs. Entries for already-initialized steps are omitted.`})}),_jsx(ResponseField,{name:`preparedTxs.dispersionInitTxs`,type:`array`,id:`param-prepared-txs-dispersion-init-txs`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/guides/multi-destination`,children:`Multi-destination`}),` transfers only (always `,_jsx(_components.code,{children:`[]`}),` otherwise). Base64\nVersionedTransactions that set up the payout orchestrator, one committed step per destination,\nand the route’s exit binding. Signed by `,_jsx(_components.code,{children:`sourceOwner`}),` only. Broadcast `,_jsx(_components.strong,{children:`after`}),` `,_jsx(_components.code,{children:`routeInitTxs`}),`,\nin order. Pieces already on chain are omitted.`]})}),_jsx(ResponseField,{name:`preparedTxs.recentBlockhash`,type:`string`,id:`param-prepared-txs-recent-blockhash`,children:_jsx(_components.p,{children:`Blockhash used to build these transactions. Sign and broadcast before this expires (~60s).`})}),_jsx(ResponseField,{name:`preparedTxs.lastValidBlockHeight`,type:`integer`,id:`param-prepared-txs-last-valid-block-height`,children:_jsx(_components.p,{children:`Last block height at which these transactions are valid.`})}),_jsxs(ResponseField,{name:`preparedTxs.resume`,type:`object`,id:`param-prepared-txs-resume`,children:[_jsx(_components.p,{children:`Snapshot of on-chain state used to build the bundle.`}),_jsxs(Expandable,{title:`resume fields`,children:[_jsx(ResponseField,{name:`resume.routeAlreadyDeployed`,type:`boolean`,id:`param-resume-route-already-deployed`}),_jsx(ResponseField,{name:`resume.existingHopCount`,type:`integer`,id:`param-resume-existing-hop-count`}),_jsx(ResponseField,{name:`resume.totalHops`,type:`integer`,id:`param-resume-total-hops`}),_jsx(ResponseField,{name:`resume.orchestratorAlreadyInitialized`,type:`boolean`,id:`param-resume-orchestrator-already-initialized`}),_jsx(ResponseField,{name:`resume.completedStepIndices`,type:`array`,id:`param-resume-completed-step-indices`,children:`Indices of step PDAs already on-chain.`}),_jsx(ResponseField,{name:`resume.totalSteps`,type:`integer`,id:`param-resume-total-steps`}),_jsx(ResponseField,{name:`resume.keeperAlreadyFunded`,type:`boolean`,id:`param-resume-keeper-already-funded`}),_jsx(ResponseField,{name:`resume.dispersion`,type:`object | null`,id:`param-resume-dispersion`,children:_jsxs(_components.p,{children:[`Multi-destination only: `,_jsx(_components.code,{children:`totalDestinations`}),`, `,_jsx(_components.code,{children:`orchestratorInitialized`}),`, `,_jsx(_components.code,{children:`stepsInitialized`}),`, `,_jsx(_components.code,{children:`routeExitBound`}),`.`]})}),_jsx(ResponseField,{name:`resume.nothingToDo`,type:`boolean`,id:`param-resume-nothing-to-do`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` if all groups are null/empty — no signing needed.`]})})]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Prepare Transactions","description":"Build the unsigned transaction bundle for a transfer","api":"POST /api/v1/transfers/{transferId}/prepare","href":"/api-reference/transfers/prepare"}}},"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Probes on-chain state and returns the full bundle of unsigned Solana transactions that `,_jsx(_components.code,{children:`sourceOwner`}),` must sign and broadcast to deploy the transfer.`]}),`\n`,_jsxs(_components.p,{children:[`This endpoint is `,_jsx(_components.strong,{children:`resumable`}),` — re-call it after a partial broadcast to get a fresh blockhash and drop any groups already confirmed on-chain (`,_jsx(_components.code,{children:`null`}),` fields are already on chain, skip them).`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`On compliance-enabled networks (mainnet) the orchestrator-init transaction includes the\n`,_jsx(_components.strong,{children:`screening fee`}),`: 0.002 SOL for each wallet the route screens. It is part of `,_jsx(_components.code,{children:`/estimate`}),`\n(`,_jsx(_components.code,{children:`sol.breakdown.screeningFeeLamports`}),`, counted in `,_jsx(_components.code,{children:`requiredSolUpFrontLamports`}),`). Ensure the\n`,_jsx(_components.code,{children:`sourceOwner`}),` wallet holds `,_jsx(_components.code,{children:`requiredSolUpFrontLamports`}),` plus the transfer amount before signing.\nThe fee pays for the screen and is `,_jsx(_components.strong,{children:`not refunded`}),`, whether the route is clean or flagged. See\n`,_jsx(_components.a,{href:`/concepts/compliance`,children:`Compliance \u0026 screening`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Before building anything, `,_jsx(_components.code,{children:`/prepare`}),` re-checks the quoted fee tier against the pool price the program\nwill read. If the price has crossed a tier boundary since the quote, it returns `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`MH_040`})}),`: create a\nnew transfer to re-quote. See `,_jsx(_components.a,{href:`/concepts/pricing`,children:`Pricing \u0026 revenue share`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A transfer that is already `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`refunded`}),` or `,_jsx(_components.code,{children:`expired`}),` has nothing left to prepare:\n`,_jsx(_components.code,{children:`/prepare`}),` returns `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`MH_035`})}),` (409) and no transactions, so a finished transfer can never be funded\ntwice.`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`transferId`,type:`integer`,required:true,id:`param-transfer-id`,children:_jsx(_components.p,{children:`The internal transfer ID.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`transfer`,type:`object`,id:`param-transfer`,children:_jsx(_components.p,{children:`Current transfer state.`})}),`\n`,_jsxs(ResponseField,{name:`preparedTxs`,type:`object`,id:`param-prepared-txs`,children:[_jsx(_components.p,{children:`Bundle of unsigned transactions to sign and broadcast.`}),_jsxs(Expandable,{title:`preparedTxs fields`,children:[_jsx(ResponseField,{name:`preparedTxs.keeperFundingTx`,type:`string | null`,id:`param-prepared-txs-keeper-funding-tx`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Broadcast FIRST.`}),` Base64 VersionedTransaction that transfers SOL to the assigned keeper. `,_jsx(_components.code,{children:`null`}),` if keeper is already funded.\nIf your client broadcast it but crashed before `,_jsx(_components.code,{children:`confirm-broadcast`}),`, just call `,_jsx(_components.code,{children:`/prepare`}),` again:\nthe landed funding is found on chain and recorded, and you are not asked to pay it twice.`]})}),_jsx(ResponseField,{name:`preparedTxs.routeInitTxs`,type:`array`,id:`param-prepared-txs-route-init-txs`,children:_jsxs(_components.p,{children:[`Array of `,_jsx(_components.code,{children:`{ base64 }`}),` VersionedTransactions to initialize the on-chain route. Empty if route is already deployed.`]})}),_jsx(ResponseField,{name:`preparedTxs.orchestratorInitTx`,type:`string | null`,id:`param-prepared-txs-orchestrator-init-tx`,children:_jsxs(_components.p,{children:[`Base64 legacy Transaction to initialize the orchestrator config PDA. `,_jsx(_components.code,{children:`null`}),` if already initialized.`]})}),_jsx(ResponseField,{name:`preparedTxs.sessionInitTxs`,type:`array`,id:`param-prepared-txs-session-init-txs`,children:_jsx(_components.p,{children:`Array of base64 VersionedTransactions to initialize step state PDAs. Entries for already-initialized steps are omitted.`})}),_jsx(ResponseField,{name:`preparedTxs.dispersionInitTxs`,type:`array`,id:`param-prepared-txs-dispersion-init-txs`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/guides/multi-destination`,children:`Multi-destination`}),` transfers only (always `,_jsx(_components.code,{children:`[]`}),` otherwise). Base64\nVersionedTransactions that set up the payout orchestrator, one committed step per destination,\nand the route’s exit binding. Signed by `,_jsx(_components.code,{children:`sourceOwner`}),` only. Broadcast `,_jsx(_components.strong,{children:`after`}),` `,_jsx(_components.code,{children:`routeInitTxs`}),`,\nin order. Pieces already on chain are omitted.`]})}),_jsx(ResponseField,{name:`preparedTxs.recentBlockhash`,type:`string`,id:`param-prepared-txs-recent-blockhash`,children:_jsx(_components.p,{children:`Blockhash used to build these transactions. Sign and broadcast before this expires (~60s).`})}),_jsx(ResponseField,{name:`preparedTxs.lastValidBlockHeight`,type:`integer`,id:`param-prepared-txs-last-valid-block-height`,children:_jsx(_components.p,{children:`Last block height at which these transactions are valid.`})}),_jsxs(ResponseField,{name:`preparedTxs.resume`,type:`object`,id:`param-prepared-txs-resume`,children:[_jsx(_components.p,{children:`Snapshot of on-chain state used to build the bundle.`}),_jsxs(Expandable,{title:`resume fields`,children:[_jsx(ResponseField,{name:`resume.routeAlreadyDeployed`,type:`boolean`,id:`param-resume-route-already-deployed`}),_jsx(ResponseField,{name:`resume.existingHopCount`,type:`integer`,id:`param-resume-existing-hop-count`}),_jsx(ResponseField,{name:`resume.totalHops`,type:`integer`,id:`param-resume-total-hops`}),_jsx(ResponseField,{name:`resume.orchestratorAlreadyInitialized`,type:`boolean`,id:`param-resume-orchestrator-already-initialized`}),_jsx(ResponseField,{name:`resume.completedStepIndices`,type:`array`,id:`param-resume-completed-step-indices`,children:`Indices of step PDAs already on-chain.`}),_jsx(ResponseField,{name:`resume.totalSteps`,type:`integer`,id:`param-resume-total-steps`}),_jsx(ResponseField,{name:`resume.keeperAlreadyFunded`,type:`boolean`,id:`param-resume-keeper-already-funded`}),_jsx(ResponseField,{name:`resume.dispersion`,type:`object | null`,id:`param-resume-dispersion`,children:_jsxs(_components.p,{children:[`Multi-destination only: `,_jsx(_components.code,{children:`totalDestinations`}),`, `,_jsx(_components.code,{children:`orchestratorInitialized`}),`, `,_jsx(_components.code,{children:`stepsInitialized`}),`, `,_jsx(_components.code,{children:`routeExitBound`}),`.`]})}),_jsx(ResponseField,{name:`resume.nothingToDo`,type:`boolean`,id:`param-resume-nothing-to-do`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` if all groups are null/empty — no signing needed.`]})})]})]})]})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /api/v1/transfers/42/prepare`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: mh_live_abc123...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: $(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`uuidgen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)\"`})]}),`\n`]})})})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`23`,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:`23`,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:` \"transfer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"awaiting_signature\"`}),_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:` \"preparedTxs\"`}),_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:` \"keeperFundingTx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AQAAAAAAAA...\"`}),_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:` \"routeInitTxs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"base64\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AQAAAAAAAA...\"`}),_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:` \"orchestratorInitTx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"sessionInitTxs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AQAAAAAAAA...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AQAAAAAAAA...\"`}),_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:` \"dispersionInitTxs\"`}),_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:` \"recentBlockhash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BpFi8bTNRuLbUnrq7q1N1M...\"`}),_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:` \"lastValidBlockHeight\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`289043200`}),_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:` \"resume\"`}),_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:` \"routeAlreadyDeployed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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:` \"existingHopCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"totalHops\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_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:` \"orchestratorAlreadyInitialized\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"completedStepIndices\"`}),_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:` \"totalSteps\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_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:` \"keeperAlreadyFunded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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:` \"dispersion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"nothingToDo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\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`]})})}),_jsx(CodeBlock,{filename:`409`,numberOfLines:`6`,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:`6`,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:` \"error\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MH_035\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Transfer not in a state that allows this operation — Transfer is completed; there is nothing left to prepare\"`})]}),`\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(CodeBlock,{filename:`409`,numberOfLines:`6`,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:`6`,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:` \"error\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MH_040\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Tier shifted: quote=50bps/1125000flat, on-chain now=50bps/1875000flat (tier 3, usd_micros=163012500)\"`})]}),`\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`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Prepare Transactions","description":"Build the unsigned transaction bundle for a transfer","api":"POST /api/v1/transfers/{transferId}/prepare","href":"/api-reference/transfers/prepare"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","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=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> /api/v1/transfers/42/prepare\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"x-api-key: mh_live_abc123...\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Idempotency-Key: $(\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">uuidgen\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">)\"\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=\"23\">\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\"> \"transfer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">42\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"awaiting_signature\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"preparedTxs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"keeperFundingTx\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"AQAAAAAAAA...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"routeInitTxs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [{ \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"base64\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"AQAAAAAAAA...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"orchestratorInitTx\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"sessionInitTxs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"AQAAAAAAAA...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"AQAAAAAAAA...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"dispersionInitTxs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"recentBlockhash\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"BpFi8bTNRuLbUnrq7q1N1M...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lastValidBlockHeight\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">289043200\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"resume\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"routeAlreadyDeployed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"existingHopCount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"totalHops\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">7\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"orchestratorAlreadyInitialized\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"completedStepIndices\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"totalSteps\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">7\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"keeperAlreadyFunded\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"dispersion\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"nothingToDo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\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\u003c/code>\u003c/pre>"},{"filename":"409","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=\"6\">\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\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"MH_035\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Transfer not in a state that allows this operation — Transfer is completed; there is nothing left to prepare\"\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>"},{"filename":"409","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=\"6\">\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\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"MH_040\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Tier shifted: quote=50bps/1125000flat, on-chain now=50bps/1875000flat (tier 3, usd_micros=163012500)\"\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":[]}},"endpoint":{"title":"Prepare Transactions","path":"/api/v1/transfers/{transferId}/prepare","method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{"transferId":{"schema":[{"type":"integer","description":"The internal transfer ID.","required":true}]}}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"transfer":[{"type":"object","properties":{},"description":"Current transfer state."}],"preparedTxs":[{"type":"object","properties":{"preparedTxs.keeperFundingTx":[{"type":"object","properties":{},"description":"Broadcast FIRST. Base64 VersionedTransaction that transfers SOL to the assigned keeper. `null` if keeper is already funded. If your client broadcast it but crashed before `confirm-broadcast` , just call `/prepare` again: the landed funding is found on chain and recorded, and you are not asked to pay it twice."}],"preparedTxs.routeInitTxs":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Array of `{ base64 }` VersionedTransactions to initialize the on-chain route. Empty if route is already deployed."}],"preparedTxs.orchestratorInitTx":[{"type":"object","properties":{},"description":"Base64 legacy Transaction to initialize the orchestrator config PDA. `null` if already initialized."}],"preparedTxs.sessionInitTxs":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Array of base64 VersionedTransactions to initialize step state PDAs. Entries for already-initialized steps are omitted."}],"preparedTxs.dispersionInitTxs":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Multi-destination transfers only (always `[]` otherwise). Base64 VersionedTransactions that set up the payout orchestrator, one committed step per destination, and the route’s exit binding. Signed by `sourceOwner` only. Broadcast after `routeInitTxs` , in order. Pieces already on chain are omitted."}],"preparedTxs.recentBlockhash":[{"type":"string","description":"Blockhash used to build these transactions. Sign and broadcast before this expires (~60s)."}],"preparedTxs.lastValidBlockHeight":[{"type":"integer","description":"Last block height at which these transactions are valid."}],"preparedTxs.resume":[{"type":"object","properties":{"resume.routeAlreadyDeployed":[{"type":"boolean"}],"resume.existingHopCount":[{"type":"integer"}],"resume.totalHops":[{"type":"integer"}],"resume.orchestratorAlreadyInitialized":[{"type":"boolean"}],"resume.completedStepIndices":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Indices of step PDAs already on-chain."}],"resume.totalSteps":[{"type":"integer"}],"resume.keeperAlreadyFunded":[{"type":"boolean"}],"resume.dispersion":[{"type":"object","properties":{},"description":"Multi-destination only: `totalDestinations` , `orchestratorInitialized` , `stepsInitialized` , `routeExitBound` ."}],"resume.nothingToDo":[{"type":"boolean","description":"`true` if all groups are null/empty — no signing needed."}]},"description":"Snapshot of on-chain state used to build the bundle."}]},"description":"Bundle of unsigned transactions to sign and broadcast."}]}}],"examples":{"example":{"value":{"transfer":{},"preparedTxs":{"preparedTxs.keeperFundingTx":{},"preparedTxs.routeInitTxs":[{}],"preparedTxs.orchestratorInitTx":{},"preparedTxs.sessionInitTxs":[{}],"preparedTxs.dispersionInitTxs":[{}],"preparedTxs.recentBlockhash":"\u003cstring>","preparedTxs.lastValidBlockHeight":123,"preparedTxs.resume":{"resume.routeAlreadyDeployed":true,"resume.existingHopCount":123,"resume.totalHops":123,"resume.orchestratorAlreadyInitialized":true,"resume.completedStepIndices":[{}],"resume.totalSteps":123,"resume.keeperAlreadyFunded":true,"resume.dispersion":{},"resume.nothingToDo":true}}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"multihopper","siteName":"MultiHopper","title":"Prepare Transactions - MultiHopper","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T14:01:44.733Z","originalFileLocation":"api-reference/transfers/prepare.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=\"Build the unsigned transaction bundle for a transfer\">\u003cmeta data-mint-head name=\"application-name\" content=\"MultiHopper\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/multihopper/zo6ZBJbJjZJ2ee37/_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/multihopper/zo6ZBJbJjZJ2ee37/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/multihopper/zo6ZBJbJjZJ2ee37/_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/multihopper/zo6ZBJbJjZJ2ee37/_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/multihopper/zo6ZBJbJjZJ2ee37/_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/multihopper/zo6ZBJbJjZJ2ee37/_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/multihopper/zo6ZBJbJjZJ2ee37/_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/multihopper/zo6ZBJbJjZJ2ee37/_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/multihopper/zo6ZBJbJjZJ2ee37/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Prepare Transactions - MultiHopper\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build the unsigned transaction bundle for a transfer\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MultiHopper\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dev-docs.multihopper.com/api-reference/transfers/prepare\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://multihopper.mintlify.site/_mintlify/api/og/v2?division=Transfers\u0026amp;title=Prepare+Transactions\u0026amp;description=Build+the+unsigned+transaction+bundle+for+a+transfer\u0026amp;theme=0d2799e85b2bf0cc15d4a351\u0026amp;signature=bba5b22704255de179d6f8e9d7291582432baddf5cc2f57ff52a3d23f2f4fac9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Prepare Transactions - MultiHopper\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build the unsigned transaction bundle for a transfer\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://multihopper.mintlify.site/_mintlify/api/og/v2?division=Transfers\u0026amp;title=Prepare+Transactions\u0026amp;description=Build+the+unsigned+transaction+bundle+for+a+transfer\u0026amp;theme=0d2799e85b2bf0cc15d4a351\u0026amp;signature=bba5b22704255de179d6f8e9d7291582432baddf5cc2f57ff52a3d23f2f4fac9\">\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/multihopper/zo6ZBJbJjZJ2ee37/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MultiHopper\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7E7F83\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dev-docs.multihopper.com/api-reference/transfers/prepare\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/transfers/prepare.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dev-docs.multihopper.com/#organization\",\"name\":\"MultiHopper\",\"url\":\"https://dev-docs.multihopper.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/multihopper/KSAYi9GJphQC0KJt/logo/wordmark-dark-alt.png?fit=max\u0026auto=format\u0026n=KSAYi9GJphQC0KJt\u0026q=85\u0026s=9e4e3c017c9067cd8d58f31d419afd03\"}},{\"@type\":\"WebSite\",\"@id\":\"https://dev-docs.multihopper.com#website\",\"name\":\"MultiHopper\",\"url\":\"https://dev-docs.multihopper.com\",\"publisher\":{\"@id\":\"https://dev-docs.multihopper.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dev-docs.multihopper.com/api-reference/transfers/prepare#webpage\",\"url\":\"https://dev-docs.multihopper.com/api-reference/transfers/prepare\",\"name\":\"Prepare Transactions\",\"description\":\"Build the unsigned transaction bundle for a transfer\",\"dateModified\":\"2026-10-21T14:01:44.733Z\",\"isPartOf\":{\"@id\":\"https://dev-docs.multihopper.com#website\"},\"breadcrumb\":{\"@id\":\"https://dev-docs.multihopper.com/api-reference/transfers/prepare#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dev-docs.multihopper.com/api-reference/transfers/prepare#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Transfers\",\"item\":\"https://dev-docs.multihopper.com/api-reference/transfers/estimate\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prepare Transactions\",\"item\":\"https://dev-docs.multihopper.com/api-reference/transfers/prepare\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://dev-docs.multihopper.com/api-reference/transfers/prepare#apireference\",\"headline\":\"Prepare Transactions\",\"name\":\"Prepare Transactions\",\"description\":\"Build the unsigned transaction bundle for a transfer\",\"url\":\"https://dev-docs.multihopper.com/api-reference/transfers/prepare\",\"mainEntityOfPage\":{\"@id\":\"https://dev-docs.multihopper.com/api-reference/transfers/prepare#webpage\"},\"dateModified\":\"2026-10-21T14:01:44.733Z\",\"publisher\":{\"@id\":\"https://dev-docs.multihopper.com/#organization\"},\"isPartOf\":{\"@id\":\"https://dev-docs.multihopper.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MultiHopper\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MultiHopper\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/transfers/prepare.md","siteName":"MultiHopper","nav":{"global":{"anchors":[{"anchor":"App","icon":"arrow-up-right-from-square","href":"https://multihopper.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/MultiHopper1"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":""}]},{"tab":"API Reference","groups":[{"group":"API documentation","pages":[{"title":"API Introduction","icon":"terminal","href":"/api-reference/introduction"}]},{"group":"Transfers","pages":[{"title":"Estimate Fees","api":"POST /api/v1/transfers/estimate","href":"/api-reference/transfers/estimate"},{"title":"Create Transfer","description":"Create a new transfer quote","api":"POST /api/v1/transfers","href":"/api-reference/transfers/create"},{"title":"Prepare Transactions","api":"POST /api/v1/transfers/{transferId}/prepare","href":"/api-reference/transfers/prepare"},{"title":"Confirm Broadcast","description":"Report Solana transaction signatures after broadcasting prepared transactions","api":"POST /api/v1/transfers/{transferId}/confirm-broadcast","href":"/api-reference/transfers/confirm-broadcast"},{"title":"Get Transfer","api":"GET /api/v1/transfers/{transferId}","href":"/api-reference/transfers/get"},{"title":"List Transfers","api":"GET /api/v1/transfers","href":"/api-reference/transfers/list"}]},{"group":"Custom routes","pages":[{"title":"Hop Library","api":"GET /api/v1/hop-library","href":"/api-reference/hop-library"},{"title":"Route Templates","href":"/api-reference/route-templates"}]},{"group":"Webhooks","pages":[{"title":"Register Webhook","api":"POST /api/v1/webhooks","href":"/api-reference/webhooks/create"},{"title":"List Webhooks","api":"GET /api/v1/webhooks","href":"/api-reference/webhooks/list"},{"title":"Delete Webhook","api":"DELETE /api/v1/webhooks/{endpointId}","href":"/api-reference/webhooks/delete"},{"title":"Webhook Events","icon":"bell","href":"/api-reference/webhooks/events"}]},{"group":"Integration","pages":[{"title":"Usage","api":"GET /api/v1/usage","href":"/api-reference/usage"}]}]}]},"basePath":"","title":"Prepare Transactions - MultiHopper","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BgGj2PGS.js","utils-BhNOqRKb.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BAgRNUZo.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CGkb0TPw.js","snippetPresets-ChLkL1a6.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-Ef10Jrbx.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DlVCnjU8.js","shallow-BA55zJxQ.js","getApiPlaygroundDisplay-DR09dKtp.js","CodeSnippet-BZ8J8Kll.js","CodeSnippets-CcguVheG.js","Page-C7x-eUfk.js","getPastedJson-D5UqeqBp.js","icon-DpD0l99C.js","MethodPill-Wg2NXsp_.js","DuplicateIcon-CCSyX8lh.js","createIcon-C4Ukv9HX.js","DynamicMarkdown-RhjEuCHC.js","SectionHeading-DL1MykRq.js","axios-vUo_bRtp.js"]}