Requesting Bitcoin-specific information via the API
Chains
Tools
Tokens
Token details
Requesting a Quote
Bitcoin to Ethereum
The quote and route request to LI.FI API is the same structure with respective variables for chain and token addressEthereum to Bitcoin
Executing the transaction
Transaction Data
BTC to Ethereum, Avalanche, or BNB Smart Chain (BSC) After retrieving the quote, the funds need to be sent to the BTC vault address provided in the response, along with a memo. Memo Functionality: Similar to Thorchain, LI.FI uses memos for BTC to EVM swaps. The memo in the BTC transaction specifies the swap’s destination address and chain. Transaction Handling: The transaction that leaves BTC and goes to EVM needs to be sent to an EVM address. The memo ensures that the swap details are correctly processed by the validators.NOTE: Only send transactions in a timely manner (~30 min). It is always
recommended to request an up-to-date quote to ensure to get the latest
information.
Risk of modifying Bitcoin transaction dataModifying PSBT or raw Bitcoin transaction data received from our API (for
example removing outputs, changing amounts, or editing opcodes/scripts) can
invalidate signatures or spending conditions and lead to irreversible loss of
funds.Do not alter PSBTs unless you are an expert and have explicitly confirmed with
us the modification you intend to make.