Skip to Content

BTC Deposit

The BTC Deposit action converts native Bitcoin to BTC.b (wrapped Bitcoin) on EVM chains. It works similarly to BTC Stake but generates BTC.b rather than LBTC.


Basic Usage

import { createLombardSDK, Chain, AssetId } from '@lombard.finance/sdk'; import { config } from './lib/lombard'; const sdk = createLombardSDK(config); const deposit = sdk.chain.btc.deposit({ destChain: Chain.ETHEREUM, assetOut: AssetId.BTCb, }); await deposit.prepare({ amount: '0.1', recipient: '0x1234567890abcdef1234567890abcdef12345678', }); await deposit.authorize(); const depositAddress = await deposit.generateDepositAddress(); // depositAddress: 'bc1q...'

Parameters

Deposit Options

ParameterTypeRequiredDescription
destChainChainYesTarget EVM chain for BTC.b
assetOutAssetIdYesMust be AssetId.BTCb
sourceChainChainNoBitcoin network selection

Prepare Parameters

ParameterTypeRequiredDescription
amountstringYesBTC quantity
recipientstringYesEVM address for BTC.b
referralCodestringNoPartner attribution code

Status Flow

IDLE → NEEDS_FEE_AUTHORIZATION → READY → ADDRESS_READY
Last updated on