BTC deposit addresses
Overview
Generating a Deposit Address
import { createLombardSDK, Chain, AssetId } from '@lombard.finance/sdk';
import { config } from './lib/lombard';
const sdk = createLombardSDK(config);
const stake = sdk.chain.btc.stake({
destChain: Chain.ETHEREUM,
assetOut: AssetId.LBTC,
});
await stake.prepare({
amount: '0.1',
recipient: '0x1234567890abcdef1234567890abcdef12345678',
});
await stake.authorize();
const depositAddress = await stake.generateDepositAddress();
// depositAddress: 'bc1q...'
Checking for Existing Address
Reusing Addresses
Address Expiration
Multiple Chains
Last updated