Skip to Content
BuildBitcoin for AI AgentsCommon Agent Flows

Common Agent Flows

This section covers nine step-by-step walkthroughs for the most common agent tasks, from native BTC deposits to Morpho borrowing.


1

Native BTC → LBTC (deposit + claim)

Requires Partner ID

User sends native BTC and wants yield-bearing LBTC on an EVM chain.

A deposit becomes notarized when Lombard’s validators have signed an attestation that the on-chain Bitcoin deposit confirmed; only at that point can it be claimed to mint LBTC.

sdk-agent: check_fee_authorizationprepare_btc_to_lbtc_deposit → user sends BTC → get_deposit_statusprepare_claim_lbtc_deposit

sdk-agentkit: external deposit flow + claim_lbtc_deposit once notarized

2

Native BTC → BTC.b (deposit)

Requires Partner ID

User sends native BTC and wants BTC.b (cross-chain wrapped Bitcoin, not yield-bearing) on an EVM chain. Use the dedicated BTC.b deposit tool; prepare_btc_to_lbtc_deposit mints LBTC instead.

sdk-agent: check_fee_authorizationprepare_btc_to_btcb_deposit → user sends BTC → get_deposit_status tracks confirmations until BTC.b lands on the destination chain

sdk-agentkit: not exposed as a single AgentKit action; use the underlying SDK or sdk-agent

3

BTC.b → LBTC (stake)

User already holds BTC.b on Ethereum or Base and wants yield-bearing LBTC.

sdk-agent: get_btcb_balanceget_exchange_rateprepare_btcb_to_lbtc_stake → wallet signs

sdk-agentkit: stake_btcb_to_lbtc (approval + fee authorization handled automatically)

4

LBTC → BTC.b (same-chain redeem)

User wants to move out of LBTC into cross-chain BTC.b without leaving the EVM.

sdk-agent: prepare_lbtc_to_btcb (amount + chainId, no Bitcoin recipient needed)

sdk-agentkit: redeem_lbtc_to_btcb

5

LBTC → native BTC (cross-chain unstake)

User wants to redeem LBTC back to native Bitcoin.

sdk-agent: prepare_lbtc_to_btc with amount and a Bitcoin recipient → get_redemption_status polls progress

sdk-agentkit: unstake_lbtc_to_btc with a Bitcoin recipient → get_redemption_status

6

BTC.b → native BTC (redeem)

Reverse the bridge: burn BTC.b and receive native BTC. Use the dedicated BTC.b tool; prepare_lbtc_to_btc is for LBTC only.

sdk-agent: prepare_redeem_btcb with amount and a Bitcoin recipient returns a prepared evm.btcbToBtc tx; after execution the app can surface the resulting tx hash and link it to a block explorer

sdk-agentkit: not exposed as a single AgentKit action; use the underlying SDK or sdk-agent

7

LBTC → Bitcoin Earn (yield)

Earn additional yield by deploying LBTC into a vault, then withdraw or cancel as needed.

sdk-agent: get_earn_strategies / get_lbtc_defi_opportunitiesprepare_earn_depositget_earn_positionsprepare_earn_withdrawal (or prepare_cancel_earn_withdrawal to abort an active one)

sdk-agentkit: deploy_to_earn

8

LBTC as Morpho Blue collateral

sdk-agent only

Use LBTC as collateral to borrow other assets, then repay.

get_morpho_lbtc_marketsprepare_morpho_supply_collateralprepare_morpho_borrowget_morpho_positionprepare_morpho_repay

9

Unknown asset disambiguation

User mentions a ticker the agent doesn’t recognise (BTCe, LBTCv, an arbitrary 0x… address).

sdk-agent: get_token_info resolves it to a canonical Lombard asset (or reports it as unknown with suggestions) before the model commits to an answer

Last updated on