@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
12 lines (11 loc) • 644 B
TypeScript
import { type PaymentMethodBitcoinLightningInfo } from '../domains/paymentMethods';
/**
* Enters the Bitcoin Lightning checkout flow: builds the Bitcoin Lightning
* payment method info and sets it, plus the BTC source asset, on the checkout
* context. Mirrors the selection path in `SourceChange` so any entry point
* (e.g. the Transfer Crypto banner) lands the user in the same flow.
*
* Returns the built `paymentMethodInfo` so the caller can navigate to the next
* step (Input Amount, which then routes to the Lightning Invoice screen).
*/
export declare function useStartBitcoinLightning(): () => PaymentMethodBitcoinLightningInfo;