EVM Redeem

Redeem BTC.b to native BTC.


Overview

The EVM Redeem action burns BTC.b on an EVM chain and releases native BTC to your Bitcoin wallet. This is the opposite operation to BTC Deposit.

Flow: BTC.b (EVM) → BTC (Bitcoin)


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({
  assetIn: AssetId.BTCb,
  assetOut: AssetId.BTC,
  sourceChain: Chain.ETHEREUM,
  destChain: Chain.BITCOIN_MAINNET,
});

await redeem.prepare({
  amount: '0.1',
  recipient: 'bc1q...', // Bitcoin address
});

const result = await redeem.execute();
// result.txHash: '0x...'

Parameters

Redeem Options

Parameter
Type
Required
Description

assetIn

AssetId

Yes

Input asset (AssetId.BTCb)

assetOut

AssetId

Yes

Output asset (AssetId.BTC)

sourceChain

Chain

Yes

EVM chain where BTC.b is held

destChain

Chain

Yes

Bitcoin network (BITCOIN_MAINNET or BITCOIN_SIGNET)

Prepare Parameters

Parameter
Type
Required
Description

amount

string

Yes

Amount of BTC.b to redeem

recipient

string

Yes

Bitcoin address to receive BTC


Status Flow


Last updated