attachFlowSource
Attaches a payment source — wallet or exchange — to a flow. Returns the updated flow and a session token that authenticates all subsequent calls for this flow.Usage
Parameters
This is a discriminated union onsourceType:
Wallet source (sourceType: 'wallet')
| Parameter | Type | Description |
|---|---|---|
flowId | string | The flow ID. |
sourceType | 'wallet' | Indicates a wallet source. |
fromAddress | string | The wallet address funding the flow. |
fromChainName | Chain | Chain family: 'EVM', 'SOL', 'BTC', 'SUI', 'TRON'. |
fromChainId | string (optional) | Network ID (e.g., '1' for Ethereum, '8453' for Base). |
Exchange source (sourceType: 'exchange')
| Parameter | Type | Description |
|---|---|---|
flowId | string | The flow ID. |
sourceType | 'exchange' | Indicates an exchange source. |
exchangeProvider | 'coinbase' | The exchange provider. |
Returns
Promise<FlowSourceResponse>:
Examples
Wallet source (EVM)
Wallet source (Solana)
Exchange source (Coinbase)
Related
- Fireblocks Flow JavaScript SDK guide - End-to-end flow guide
getFlowQuote- Get a conversion quotesubmitFlowTransaction- Submit for signing and broadcastcancelFlow- Cancel a flow