BTC Stake
Overview
Basic Usage
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...'
// User sends BTC to depositAddress
// LBTC will be minted to recipient after confirmations
Parameters
Stake Options
Parameter
Type
Required
Description
Prepare Parameters
Parameter
Type
Required
Description
With Referral Code
Status Flow
To Ethereum
To Other EVM Chains
Checking Status
Events (Optional)
Error Handling
Last updated