Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature]: Estimate transaction fee after Bitcoin UTXO input selection #902

Open
vanditshah99 opened this issue May 16, 2024 · 1 comment
Labels
enhancement New feature or request fees

Comments

@vanditshah99
Copy link

It would be of great help to estimate onchain fees for sending asset to an address, fields like total sats and sats/vbyte or sats/kw would help us estimate what the fees citing to number of inputs used to felicitate the transactions.

@vanditshah99 vanditshah99 added the enhancement New feature or request label May 16, 2024
@guggero
Copy link
Member

guggero commented May 16, 2024

Thanks for creating the issue.

Some context from chat: Main issue is that it is not easy to figure out how many on-chain inputs are required to spend enough assets to a given Taproot Asset address, as multiple asset carrying inputs might need to be spent. So under the hood this RPC should fund the address send, see how many inputs and outputs are required and then return a total fee amount (and the fee rate used to calculate, based on lnd/bitcoind's estimated fee rate).

@dstadulis dstadulis changed the title [feature]: API to estimate fees for sending asset [feature]: Estimate transaction fee after Bitcoin UTXO input selection May 17, 2024
@dstadulis dstadulis added the fees label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fees
Projects
None yet
Development

No branches or pull requests

3 participants