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

Function getchaininfo

tests/plugins/badestimate.py:65–70  ·  view source on GitHub ↗
(plugin, **kwargs)

Source from the content-addressed store, hash-verified

63
64@plugin.method("getchaininfo")
65def getchaininfo(plugin, **kwargs):
66 info = json.loads(bcli(plugin, ["getblockchaininfo"]))
67 return {"chain": info['chain'],
68 "headercount": info['headers'],
69 "blockcount": info['blocks'],
70 "ibd": info['initialblockdownload']}
71
72
73@plugin.method("sendrawtransaction")

Callers

nothing calls this directly

Calls 1

bcliFunction · 0.85

Tested by

no test coverage detected