Skip to main content
Reports the transaction hash of a wallet payment that the payer signed and sent. The flow moves to broadcasted, and Dynamic follows the transaction from there. After this call, the payment can no longer be cancelled.
submitFlowTransaction calls broadcastFlow for you. Call it directly only when you sign the transaction yourself after prepareFlowSigning.

When to call

Call broadcastFlow for a wallet source, when executionState is signing and the wallet returned the transaction hash. Do not call it for other sources. An exchange payment is confirmed by the exchange, so after the payer opens the purchase link, your page only reads the flow. A deposit is detected at the deposit address, and reporting a hash for a deposit-address flow is rejected. If a call fails, read the flow with getFlow before you try again. A flow in broadcasted or later already has the transaction.

Usage

Parameters

The SDK’s TypeScript type marks txHash as optional, but a wallet source requires it.

Returns

Promise<Flow>: the flow with executionState: 'broadcasted' and txHash set.

Errors

After flow_tx_hash_already_recorded, read the flow to see whether this flow recorded the hash. Do not retry the same call. Handle Flow errors describes each error.

React

useBroadcastFlow is a mutation hook. It takes the same parameters, and it writes the returned flow into the useGetFlow cache.
Last modified on October 28, 2026