getFlow
Fetches the current state of a flow. Use this to poll for status updates after submitting a transaction, or to restore flow state on page reload.
Usage
Parameters
Returns
Promise<Flow> — the current flow state.
Execution States
Use the state to resume a flow without replaying a mutation that already succeeded.
Settlement States
Examples
Poll for completion
Restore flow on page reload
React
useGetFlow fetches on mount and returns the TanStack Query result. Pass refetchInterval to poll automatically:
Last modified on September 21, 2026