Skip to Content

EVM Redeem

Burns BTC.b on an EVM chain and releases native BTC to your Bitcoin wallet.


Basic Usage

import { createLombardSDK, Chain, AssetId } from '@lombard.finance/sdk'; import { config } from './lib/lombard'; const sdk = createLombardSDK(config); const redeem = sdk.chain.evm.redeem({ sourceChain: Chain.ETHEREUM, destChain: Chain.BITCOIN_MAINNET, assetIn: AssetId.BTCb, assetOut: AssetId.BTC, }); await redeem.prepare({ amount: '0.1', recipient: 'bc1q...', // Bitcoin address }); const result = await redeem.execute(); // result.txHash: EVM transaction hash

Parameters

Redeem Options

ParameterTypeRequiredDescription
assetInAssetIdYesAssetId.BTCb
assetOutAssetIdYesAssetId.BTC
sourceChainChainYesEVM chain holding BTC.b
destChainChainYesBitcoin network (mainnet/signet)

Prepare Parameters

ParameterTypeRequiredDescription
amountstringYesAmount in BTC.b
recipientstringYesBitcoin address

Status Flow

IDLE → READY → COMPLETED
Last updated on