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

Function getutxout

tests/plugins/badestimate.py:80–86  ·  view source on GitHub ↗
(plugin, txid, vout, *kwargs)

Source from the content-addressed store, hash-verified

78
79@plugin.method("getutxout")
80def getutxout(plugin, txid, vout, *kwargs):
81 txoutstr = bcli(plugin, ["gettxout", txid, vout]).strip()
82 if txoutstr == "":
83 return {"amount": None, "script": None}
84 txout = json.loads(txoutstr)
85 return {"amount": txout['value'],
86 "script": txout['scriptPubKey']['hex']}
87
88
89plugin.add_option("bitcoin-rpcuser", '', '')

Callers

nothing calls this directly

Calls 1

bcliFunction · 0.85

Tested by

no test coverage detected