createSwapOut
,getSwapMacaroon
: Adjust getting auth for new response
- Node.js 18 or greater is now required
- Node.js 16 or greater is now required
- Add support for P2TR addresses
- Node.js 14 or greater is now required
cancelSwapOut
: Add method to early cancel a pending swap out
createTaprootSwapOut
: Add method to request a Taproot Loop OutgetCoopSignedTx
: Add method to support getting a cooperative sweep txreleaseSwapOutSecret
: Addis_taproot
to support releasing Taproot secret
findDeposit
: Add option to specifyoutput_script
instead ofaddress
findDeposit
: Addpoll_interval_ms
for request polling timer controltaprootClaimTransaction
,taprootRefundTransaction
: Addinternal_key
attemptTaprootClaim
,swapScriptBranches
,taprootCoopTransaction
,taprootRefundTransaction
: Add methods for Taproot swaps
- Remove
askForFeeRate
,getFundedTransaction
,maintainUtxoLocks
methods and move toln-sync
library.
getFundedTransaction
: Returnlock_expires_at
to indicate input expiration lock datemaintainUtxoLocks
: Add method to keep internal tx funding input locks active
askForFeeRate
: Add method to get a desired chain fee rategetFundedTransaction
: Addchain_fee_tokens_per_vbyte
to specify chain fee rate
getFundedTransaction
: Add method to get a funded transactiongetPsbtFromTransaction
: Add method to derive a PSBT from a raw transaction
cancelSwapOut
: Cleanly cancel a swap out
attemptSweep
: Clamp output value above dust when fees consume all funds
createSwapIn
:probe_request
is now requiredcreateSwapIn
: Add support foruser_agent
createSwapOut
: Add support foruser_agent
- Fix missing dependency reference
- Pass a
metadata
object instead ofmacaroon
andpreimage
for authentication.
getSwapOutQuote
: removecltv_delta
from response
getSwapOutQuote
:cltv_delta
is undefined, use thecltv_delta
from the request instead
decodeSwapRecovery
: Pull out version field from recovery details
genericSwapService
: Add method to create generic swap server object
isSweep
: Add support for more raw transaction scenarios
Switch swap script to V2:
attemptRefund
: Allow specifying theversion
of the swap scriptcreateSwapIn
: Returnsversion
of the created swapcreateSwapOut
: Returnsversion
of the created swapdecodeSwapRecovery
: Returnsversion
of the swap recoveryencodeSwapRecovery
: Allow specifyingversion
of the swap scriptisSweep
: Add support for detecting v2 sweeps
attemptRefund
: Specifying theversion
of the swap script required for v2createSwapIn
: Now creates a version 2 swapcreateSwapOut
: Now creates a version 2 swapencodeSwapRecovery
: You must now specify the swap versionswapInAddress
: Method is removed, usecreateSwapIn
:address
swapScriptV2
: Improve overall support for future swap script version
swapScriptV2
: Add method to support future swap script version
createSwapOut
: Add argumenttimeout
to request a specific swap timeoutgetSwapOutQuote
: Add argumenttimeout
to request a specific swap timeoutgetSwapOutTerms
addmax_cltv_delta
for server maximum cltv delta tolerancegetSwapOutTerms
addmin_cltv_delta
for server minimum cltv delta tolerancesubscribeToSwapInStatus
: Add method to track server's view of swap insubscribeToSwapOutStatus
: Add method to track server's view of swap out
createSwapOut
: The argumenttimeout
is now requiredgetSwapOutQuote
: The argumenttimeout
is now required
createSwapIn
: Add support forservice_message
createSwapOut
: Add support forservice_message
getSwapInQuote
: Add support for macaroon and preimage for an api-key quotegetSwapInTerms
: Add support for macaroon and preimage for api-key termsgetSwapOutQuote
: Add support for macaroon and preimage for an api-key quotegetSwapOutTerms
: Add support for macaroon and preimage for api-key terms
releaseSwapOutSecret
: Add method to release the swap secret to the server
lightningLabsSwapsService
: addsocket
argument to specify custom socket
createSwapIn
: switchaddress
to use native segwit swap addresscreateSwapIn
: addnested_address
to show alternative nested swap address
attemptSweep
: addsends
parameter to specify exact amount sends to attempt
createSwapIn
: addin_through
parameter to specify swap inbound peer
swapUserId
: add method to derive a user id that is encoded in a macaroon
Switch to using paid LightningLabs swap service by default
getSwapMacaroon
: add method to get a swap macaroon and auth payment request
- Add delay parameter to swap out quotes
- Add
isSweep
to determine if a raw transaction is a sweep
checkQuote
: Eliminate function
createSwapOut
: Addfund_at
attribute to specify an acceptable funding time
- Add
getSwapInTerms
to look up max and min swap sizes for on-to-off-chain - Add
getSwapOutTerms
to look up max and min swap sizes for off-to-on-chain - Add
getSwapInQuote
: attributefee
for the total fee of the swap - Add
getSwapOutQuote
: attributefee
for the total fee of the swap
createSwapIn
: Removebase_fee
andfee_rate
createSwapIn
: Add required argumentfee
to specify fee to pay for swapgetSwapInQuote
: Add requiredtokens
argumentgetSwapInQuote
: Remove max and min swap sizesgetSwapInQuote
: Remove base fee and fee rategetSwapOutQuote
: Add requiredtokens
argumentgetSwapOutQuote
: Remove max and min swap sizesgetSwapOutQuote
: Remove base fee and fee rate