Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fee-estimation]

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

0
votes
2answers
112 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 ...
0
votes
0answers
20 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. ...
1
vote
1answer
53 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 ...
-1
votes
2answers
54 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 ...
0
votes
0answers
16 views

How can I obtain “paytxfee” value to calculate optimal transaction fee?

I've just used btcsuite btcwallet. How can I obtain "paytxfee" value to calculate optimal tx fee depending on tx size, after deprecated "getinfo" command?
1
vote
1answer
23 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)=...
2
votes
2answers
71 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 ...
2
votes
1answer
53 views
1
vote
1answer
44 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 ...
1
vote
2answers
134 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 ...
2
votes
1answer
201 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 ...
1
vote
1answer
165 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"...
0
votes
1answer
49 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 ...
1
vote
1answer
441 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 ...
0
votes
3answers
143 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?
0
votes
1answer
32 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 ...
1
vote
1answer
311 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 ...
0
votes
1answer
58 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" ...
1
vote
2answers
136 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 ...
0
votes
1answer
82 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 ...
4
votes
2answers
602 views

How can I set a fixed fee sufficient for transaction success in bitcoind?

I used to use sendtoaddress with bitcoind and a fixed 0.0001 btc transaction fee in the wallet UI to do the job and every transaction was sent without any problems. Since version v0.12.0 I can see ...
2
votes
1answer
160 views

Estimate Fee returning -1

I updated the bitcoin node to version to 140200 on top of which one of my applications was running. There wasn't any issue with the flow of the application estimatefee RPC I get -1 for no matter what ...
5
votes
1answer
618 views

Why does the Segwit developer guide recommend to estimate fees on basis of vsize instead of weight?

The Segwit Wallet Development Guide has a small section on fee estimation: Transaction Fee Estimation Instead of transaction size, a new metric is defined, called “virtual size” (vsize) ...