Run the BTC interactions example
Use examples/btc-interactions-flow to inspect Bitcoin wallet profile and supply flows.
Mainnet transactions
This example uses bundled mainnet canister and production service defaults. A wallet action can transfer real Bitcoin. Review every destination and amount before you confirm a transaction.
The example covers the following areas:
| Area | What to inspect |
|---|---|
| Wallet connection | Dynamic-powered Bitcoin wallet setup |
| Profile setup | client.accounts.createProfile(...) with BTC signatures |
| Pool selection | BTC pool loading and amount formatting |
| Supply interaction | client.lending.supply(...) with BTC transfer execution |
| Activity tracking | Status lookup for submitted BTC activity IDs |
Start the example
Use Node.js 20.19 or later in the 20.x line, or Node.js 22.12 or later. Use
pnpm 11 or later and a Bitcoin mainnet wallet.
To start the example, follow these steps:
-
From the SDK root, install the workspace dependencies:
pnpm install -
Start the example:
pnpm --filter @liquidium/example-btc-interactions-flow dev -
Open the local URL that Vite prints.
The page shows Liquidium BTC Interactions Flow when the example starts.