Skip to main content

prepareFlowSigning

Locks in the quote and transitions the flow to the signing state. Returns the flow with quote.signingPayload containing the data to sign.
Most integrations should use submitFlowTransaction instead, which calls prepareFlowSigning automatically. Use this function directly only when you need to handle signing and broadcasting yourself (e.g., server-side signing with a custody wallet).

When to call

Call prepareFlowSigning only when executionState is quoted. Before restoring or retrying a flow, call getFlow and check its current state.
Do not call prepareFlowSigning again after the flow reaches signing. Continue with the returned signing payload. If the transaction was submitted, call broadcastFlow with its hash. If no transaction was submitted and you need to restart, call getFlowQuote to return to quoted with a new quote. If the flow has not reached quoted yet, attach a source and get a quote first. Poll broadcasted or source_confirmed flows. If the flow is cancelled, expired, or failed, create a new flow. Calling from an unsupported state returns 409.

Usage

Parameters

Returns

Promise<Flow> — the flow with executionState: 'signing' and quote.signingPayload populated. The signing payload structure depends on the chain:

Examples

Prepare with balance assertions

Manual sign and broadcast flow

React

Last modified on July 15, 2026