File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,14 @@ bool BitcoinAPI::settxfee(double amount) {
377
377
return result.asBool ();
378
378
}
379
379
380
+ double BitcoinAPI::estimatefee (uint8_t blocks) {
381
+ string command = " estimatefee" ;
382
+ Value params, result;
383
+ params.append (blocks);
384
+ result = sendcommand (command, params);
385
+ return result.asDouble ();
386
+ }
387
+
380
388
string BitcoinAPI::signmessage (const std::string& bitcoinaddress, const std::string& message) {
381
389
string command = " signmessage" ;
382
390
Value params, result;
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ class BitcoinAPI
61
61
62
62
void keypoolrefill ();
63
63
bool settxfee (double amount);
64
+ double estimatefee (uint8_t blocks);
64
65
65
66
std::string signmessage (const std::string& bitcoinaddress, const std::string& message);
66
67
bool verifymessage (const std::string& bitcoinaddress, const std::string& signature, const std::string& message);
You can’t perform that action at this time.
0 commit comments