Questions tagged [fee-estimation]

Questions about deriving the right amount of fees to add to your transaction.

Filter by
Sorted by
Tagged with
0 votes
1 answer
71 views

Understanding fee calculation in Bitcoin Core

In the following post Calculating fee based on fee rate for bitcoin transaction the respondent describes how the fees can be calculated. Since your transaction building starts with a known target ...
yancy's user avatar
  • 1
1 vote
2 answers
163 views

Channel close fees too low

I closed a lot of channels in recent days - but for some of them I left the confirmation fee too low. I'm hoping the mempool will clear in the coming week and they will confirm. Is there a way to ...
Michael's user avatar
  • 37
1 vote
1 answer
79 views

Is there a formula to know how much to bump your change input to get a desired sat/vbyte for P2TR transactions?

so i know x = (sat/vB_effective * (vB_parent + vB_child) - current_parent_fee) / vB_child where x is the child fee (in sats/vbyte) that would need to get bumped. so this is figured off the child fee. ...
Joe T's user avatar
  • 13
1 vote
0 answers
27 views

Opportunity cost of coins locked in HTLC

If a party agrees to lock coins in HTLC for payment (having hashlock for time T), and it receives a fee f if the HTLC succeeds, then does it mean that the opportunity cost of coins locked in HTLC is f?...
Subhra Mazumdar's user avatar
1 vote
1 answer
164 views

GetMinFee() in blockchain.cpp

"mempoolminfee" : n, (numeric) Minimum fee rate in BTC/kB for tx to be accepted. Is the maximum of minrelaytxfee and minimum mempool fee "minrelaytxfee" : n, (numeric)...
user avatar
2 votes
1 answer
104 views

What fee is the starting point of the closing fee negotiation?

When I issue the command lightning-cli listpeers $peerid i get a feerate perkb of 1012 atm. What feerate is this exactly? Is this the feerate which will be proposed by the other peer for a mutual ...
user avatar
1 vote
1 answer
191 views

What are we trying to predict in fee estimation and why?

There are different estimations used in wallets, explorers and other Bitcoin projects. For example: estimatesmartfee in Bitcoin Core This is the fee rate distribution right now according to https://...
user avatar
0 votes
1 answer
763 views

What Means the Final Option in Bump Fee / Increase Fee Electrum Wallet Option

Hello I want to know what will happen if i put my transaction as Final can saves fee or no?
rubengavidia0x's user avatar
0 votes
1 answer
117 views

Channel openning fee too low [duplicate]

I recently setup a bitcoin node (bitcoind) and lightning node (lnd) on a linux system. As lifetime windows user this was quite challenging! Anyway I tried to open my first channel about 4 days ago and ...
bitcoinbob's user avatar
0 votes
1 answer
57 views

On a practical level, how exactly is the amount of a Bitcoin transaction fee determined?

Yes, I know that you can actually set the transaction fee to anything you want, but I'm of course talking about a transaction which will actually be "processed" in a reasonable timeframe, &...
M. A.'s user avatar
  • 1
1 vote
1 answer
49 views

Does sending the "max amount" with given feerate require crafting the transaction twice?

To make a transaction of "max amount" with a given feerate, is there a shorter procedure than the following? Craft transaction with with one output Sign it Consider the signed length - ...
MCCCS's user avatar
  • 10.1k
1 vote
1 answer
412 views

Paying only 6 satoshis/vbyte ($0.18 cents) per input in transaction fees?

I understand transactions are given priority based on the fee per vbyte of transaction data included in the transaction. When I look at a Fee Calculator I see different quotes based on the desired ...
S.O.S's user avatar
  • 419
2 votes
2 answers
305 views

Setting the fee rate on regtest, or, quickly generating full blocks

I'm setting up some automated testing for a lightning wallet. At the heart of my tests is a bitcoind instance running in regtest mode. I need to be able to set the fee rate - both the fee rate ...
Shum's user avatar
  • 121
0 votes
2 answers
224 views

What do they mean by "Make sure to send enough to cover any coin transaction fees!"?

When I paid a Bitcoin bill yesterday to Coinpayments.net (that's what they used), which had no problems, I spotted this text: Make sure to send enough to cover any coin transaction fees! What ...
Deano's user avatar
  • 1
0 votes
1 answer
159 views

Unexplained fee in electrum to localbitcoins transaction

Unexplained fee in electrum to localbitcoins transaction. How to avoid this in future? I was trying to make a transaction from electrum to localbitcoins 120$, paid 57$ fee for the transaction. https:/...
rubengavidia0x's user avatar
0 votes
1 answer
79 views

The bitcoin opcode seems to have a flat rate

The bitcoin opcode seems to have a flat rate, is that correct? Or, if bitcoin has a price per opcode, please give me the link. If it is a flat rate, please tell me why bitcoin does not have a ...
ground clown's user avatar
5 votes
1 answer
140 views

Where can I find a survey on different fee estimation algorithms?

I am looking for a comparison or summary of different fee estimation algorithms. Does anyone know of one? I would like to see what the best starting point is in order to see where optimization can be ...
mango's user avatar
  • 341
5 votes
3 answers
374 views

How do you reliably estimate mining fees?

I'm asking this question because sites seem to yield widely different estimates. For instance, if I want a transaction to be accepted within 6 blocks, this is what I currently have to pay according to ...
Pascal Bergeron's user avatar
1 vote
1 answer
686 views

What are fee_method and fee_level in Electrum's getfeerate RPC call?

I couldn't find any documentation on this. I found that the options for fee_method are eta, static and mempool by reading the source code. But it's still not clear to me how fee_level relates to the ...
Kyle's user avatar
  • 166
3 votes
1 answer
108 views

Can pruned nodes perform fee estimation?

The fee estimation in Bitcoin Core is based on the previous blocks. Since the minimum pruning size for pruned nodes is 550 MB, a pruned node may actually not have the last 1,000 blocks, which is the ...
Murch's user avatar
  • 71.7k
3 votes
1 answer
139 views

Given a bitcoin block, what's the easiest way to determine the minimum net fee rate (including ancestors) for transactions in that block?

Given a bitcoin block, what's the easiest way to determine the minimum net fee rate (including ancestors) for transactions in that block? A naive approach would be to just find the minimum fee rate ...
deezy's user avatar
  • 301
1 vote
0 answers
62 views

Why does estimatesmartfee and walletcreatefundedpsbt with conf_target show a wide disparity?

Seems that when my testnet node boots up estimatesmartfee works just fine generally: {"jsonrpc":"1.0","id":"curltest","method":"estimatesmartfee&...
Fontaine's user avatar
  • 466
1 vote
0 answers
88 views

When commit_fee (fee_per_kw) renegotiation?

Looking at my channels on lnd node, fee_per_kw values are different for some channels (13332 or 6422). How is the fee_per_kw calculated when opening the channel? Does it take current bitcoin fees ...
Tony Sanak's user avatar
  • 1,664
1 vote
1 answer
368 views

Transaction size limit across a single path in a Lightning Network and fee earned

Given MPP is included in the current version of lnd, an arbitrarily large transaction can be processed in the network. What is the transaction size limit across a single path? Is it still bounded to 0....
Subhra Mazumdar's user avatar
1 vote
2 answers
288 views

Explain Coinomi and Edge fee difference?

I was looking at two Bitcoin wallets, Coinomi and Edge. When setting the same custom fee for both, I see a difference in the final fee reported. As an example, Edge wallet shows a fee of $3.13 (at ...
kayan1's user avatar
  • 25
2 votes
1 answer
195 views

Estimated Fees in BCOIN

I installed a BCOIN full node and I would like to calculate estimated fees for Bitcoin transactions. This functionality works perfectly in the CLI. For example: bcoin-cli fee 3 Anyway things go ...
Mario Mazzola's user avatar
4 votes
2 answers
4k views

-fallbackfee option in sendtoaddress

I'm trying to send some bitcoins using bitcoin-cli API, but bitcoin core tells me that Fallbackfee is disabled. How can I set a value for fallbackfee? I've tried to specify it like bitcoin-cli ...
dc_Bita98's user avatar
  • 394
0 votes
1 answer
166 views

Bitcoin RPC estimatesmartfee argument keys necessary?

I am attempting to use a PHP RPC Wrapper to connect to bitcoind for RPC API calls, estimatesmartfee, more specifically. My question is, do I need to specify the argument keys, or just the values? ...
Jeffrey L. Roberts's user avatar
0 votes
1 answer
678 views

What feerate estimation APIs are there?

Some company's, block explorers and payment processors offer a public API for feerate estimations. Is there a list of publicly available feerate estimation APIs?
0xb10c's user avatar
  • 1,392
1 vote
1 answer
627 views

Bitcoin core's estimatesmartfee gives same estimate on ECONOMICAL and CONSERVATIVE mode

I have observed this behavior several times before now, the commands bitcoin-cli estimatesmartfee 2 ECONOMICAL and bitcoin-cli estimatesmartfee 2 CONSERVATIVE give the same estimates. For example, ...
Pedro's user avatar
  • 733
1 vote
1 answer
208 views

How to convert fee_estimates.dat into a human-readable format?

I would like to take a look inside fee_estimates.dat to understand a bit better how the RPC command estimatesmartfee works. However, when I open the file in a text editor, the content is not readable. ...
Pedro's user avatar
  • 733
1 vote
1 answer
1k views

estimatesmartfee outputs very different results

Around block 564815 (2019-02-26 23:40 UTC), the mempool was empty. I noticed that my two nodes are giving very different estimates for transaction fees to be used: Node 1 Version: 17.1.0 Number of ...
Pedro's user avatar
  • 733
1 vote
1 answer
118 views

Why estimatesmart fee returning the same fee for diffeent blocks number?

I am trying to calculate the fee per kb using the estimatesmartfee. I had called estimatesmart fee with different type of blocks number .The fee remaing the same. estimatesmartfee(2)=...
Pankaj Kumar's user avatar
2 votes
1 answer
154 views

Do I have to pay Fees on the Lightning Network if there is a Payment Failure?

Lightning nodes are talking fees for routing a payment. Will fees be charged anyway if a payment fails?
Stefano Angieri's user avatar
2 votes
2 answers
415 views

How is proper fee rate got on Bitcoin Cash

I'm developing wallet system trading BTC, BCH and so on. In BTC, I'm using estimatesmartfee API to calculate by transaction size and relayfee to guarantee minimum fee and it works well. In BCH, though ...
Harry's user avatar
  • 133
-1 votes
2 answers
176 views

BCH - estimatefee return -1

When I call estimatefee 1 in testnet it returns: -1 According to docs: If the node doesn’t have enough information to make an estimate, the value -1 will be returned But on my bitcoin-cli ...
truongnm's user avatar
5 votes
1 answer
1k views

Bitcoin core's estimatesmartfee error "Insufficient data or no feerate found" with synced node

I'm running bitcoin core version 0.17.0 on the Testnet and since yesterday, I've been experiencing problems with the RPC estimatesmartfee. I'm getting as a response: "errors": "Insufficient data ...
Lelo's user avatar
  • 185
1 vote
1 answer
142 views

Get real fee per transaction

I am trying to get real fee per trasnaction. So I have an account whit balance 0.06940000 and have a second account with balance 0.00000000. To get current fee I have run the command bitcoin-cli ...
Yur Gasparyan's user avatar
1 vote
1 answer
780 views

Estimate smart fee returns an error

I am trying to get current fee for per transaction. So running command bitcoin-cli estimatesmartfee 6 i am getting response lookl ike this { "errors": [ "Insufficient data or no feerate found"...
Yur Gasparyan's user avatar
-2 votes
1 answer
55 views

What will be the fee in $ for a 500$ transaction? [closed]

What will be the fee in $ for a 500$ transaction ?
user87579's user avatar
0 votes
1 answer
353 views

Any API to estimate the miner fee for a Bitcoin raw transaction?

Coming from the ethereum development scene, I guess I'm kinda spoiled by the availability of the web3 library which has easy access to the eth.gasPrice and eth.estimateGas methods to get the default ...
hellopeach's user avatar
1 vote
1 answer
775 views

Bitcoin cli asks to use estimatesmartfee with new syntax that is not described in docs

In previous versions of bitcoin-cli I've successfully used estimatesmartfee 2 syntax. But now cli answers {'errors': ['Insufficient data or no feerate found'], 'blocks': 0}. How should I estimate fee ...
Vassily's user avatar
  • 135
0 votes
3 answers
964 views

Can I prioritize my transaction in Bitcoin?

How can I prioritize my transaction in Bitcoin? Does Bitcoin has any feature that can provide me fees required in case I want my transaction to be sent as high priority?
Gagan's user avatar
  • 241
0 votes
1 answer
62 views

Prioritizing BTC transactions using Bitcore APIs

I’m planning to give a feature in my application where a user can select type of priority (Fast, Average or Slow) for their transactions. How can I get fee required for each type? Does Bitcore API ...
Gagan's user avatar
  • 241
0 votes
2 answers
410 views

Bitcoin Transaction using API with Custom Fees

I want to transfer Bitcoin from one individual address to another using API. But I want to set Transaction fees as per my requirement. So How can I do it ? Right now I am using blockchain-transaction ...
Hardik Dhankecha's user avatar
1 vote
1 answer
735 views

Bitcoind estimatesmartfee

I am trying to get transaction fee for sending all btc to another account. I use estimatesmartfee to get tx fee, I have total btc amount of 0.0195btc, so I pass 0.0195, but I get JSON integer out of ...
Thomson Ignesious's user avatar
1 vote
2 answers
580 views

How to sweep a Bitcoin Core wallet?

I have created an account in a bitcoind wallet which has got some 1.055btc which has to be wiped out to 0.00BTC to another account. so the actual BTC has to be sent is 1.055 - transaction fee. Is ...
Thomson Ignesious's user avatar
0 votes
1 answer
164 views

Less circuitous way to get network fee in raw transaction

I have my code working correctly now to create and send a transaction with the correct network fee. Here is my pseudo-code using the json rpc: Estimate network fee using estimatesmartfee "ECONOMICAL" ...
toddmo's user avatar
  • 774
1 vote
2 answers
341 views

Are there RPC calls for correct RBF calculations in Bitcoin Core?

Imagine I have a "stuck" transaction using Bitcoin Core (with correct BIP125 signalling), and I want to "unstuck" it using RBF. Is there some RPC call for the correct fee calculation? Meaning, is ...
Karel Bílek's user avatar
  • 2,655
0 votes
1 answer
114 views

Negative time estimation from estimatefees + mempool data

I am currently writing a time estimation tool for Bitcoin, and it gives me wrong estimations, so I am not sure if it's accurate and if I am not doing some error in logic. For example, I have this ...
Karel Bílek's user avatar
  • 2,655