Skip to Content

Solana Redeem

Converts BTC.b tokens on Solana into native Bitcoin by burning the wrapped asset and dispatching a cross-chain message.


Key Differences from EVM

Unlike EVM-based redemptions, the Solana process uses the Asset Router program with General Message Passing (GMP) rather than smart contracts. The operation reaches a CONFIRMING status rather than COMPLETED because Bitcoin-side asset release occurs asynchronously and cannot be directly tracked by the SDK.


Basic Usage

import { createLombardSDK, Chain, AssetId } from '@lombard.finance/sdk'; const config = createConfig({ env: Env.testnet, providers: { solana: () => window.solana, }, }); const sdk = createLombardSDK(config); const redeem = sdk.chain.solana.redeem({ sourceChain: Chain.SOLANA_DEVNET, destChain: Chain.BITCOIN_SIGNET, assetIn: AssetId.BTCb, assetOut: AssetId.BTC, }); await redeem.prepare({ amount: '0.01', // Decimal string (SDK converts to satoshis) recipient: 'bc1q...', // Bitcoin address }); const result = await redeem.execute();

Amount Format

The high-level SDK action accepts amounts as decimal strings (e.g., "0.01" BTC), while the low-level redeemForBtc function requires satoshi amounts as integer strings. The SDK automatically performs this conversion.


Current Availability

Testnet only: SOLANA_DEVNET to BITCOIN_SIGNET (stage and dev environments).

Last updated on