MCPcopy Create free account
hub / github.com/ElementsProject/lightning / bitcoind_estimate_fees_

Function bitcoind_estimate_fees_

lightningd/bitcoind.c:227–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void bitcoind_estimate_fees_(struct bitcoind *bitcoind,
228 size_t num_estimates,
229 void (*cb)(struct bitcoind *bitcoind,
230 const u32 satoshi_per_kw[], void *),
231 void *arg)
232{
233 struct jsonrpc_request *req;
234 struct estimatefee_call *call = tal(bitcoind, struct estimatefee_call);
235
236 call->bitcoind = bitcoind;
237 call->cb = cb;
238 call->arg = arg;
239
240 req = jsonrpc_request_start(bitcoind, "estimatefees", NULL,
241 bitcoind->log,
242 NULL, estimatefees_callback, call);
243 jsonrpc_request_end(req);
244 plugin_request_send(strmap_get(&bitcoind->pluginsmap,
245 "estimatefees"), req);
246}
247
248/* `sendrawtransaction`
249 *

Callers

nothing calls this directly

Calls 2

jsonrpc_request_endFunction · 0.70
plugin_request_sendFunction · 0.70

Tested by

no test coverage detected