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 hashParameters
Redeem Options
| Parameter | Type | Required | Description |
|---|---|---|---|
assetIn | AssetId | Yes | AssetId.BTCb |
assetOut | AssetId | Yes | AssetId.BTC |
sourceChain | Chain | Yes | EVM chain holding BTC.b |
destChain | Chain | Yes | Bitcoin network (mainnet/signet) |
Prepare Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | string | Yes | Amount in BTC.b |
recipient | string | Yes | Bitcoin address |
Status Flow
IDLE → READY → COMPLETEDLast updated on