[feature]: SendPayment
: allow specifying fee limits in terms of the asset being sent and not sats
#1204
Labels
enhancement
New feature or request
SendPayment
(https://lightning.engineering/api-docs/api/taproot-assets/taproot-asset-channels/send-payment/) is for sending assets defined by anasset_id
in atapchannelrpc.SendPaymentRequest
. Also must be defined intapchannelrpc.SendPaymentRequest
ispayment_request
, which is an object of typerouterrpc.SendPaymentRequest
fromSendPaymentV2
(https://lightning.engineering/api-docs/api/lnd/router/send-payment-v2/).SendPayment
is a wrapper forSendPaymentV2
, so we need to specifyfee_limit_sat
inrouterrpc.SendPaymentRequest
in terms of sats.However, from a user standpoint, they currently need to compute what the fee limit should be in sat, based a current quote from their channel peer that is exchanging their asset for sats. This can be confusing for the sender because they may not really have any sats to send as fees, and they don't want to send real sats, they only the asset they are trying to send to be used as fees. The sender also should not have to figure out what the current quote is going to be used for the current call to
SendPayment
and calculate an equivalent sats fee value in terms of the asset they are trying to send.Please add a new field to
tapchannelrpc.SendPaymentRequest
,fee_limit_asset
, and if present, overridefee_limit_sat
inpayment_request
.Also, consider fixing lightningnetwork/lnd#7832 instead of, or in addition to this issue.
The text was updated successfully, but these errors were encountered: