MCPcopy Create free account
hub / github.com/ElementsProject/elements / outputs_info

Function outputs_info

test/functional/rpc_psbt.py:39–44  ·  view source on GitHub ↗
(outputs)

Source from the content-addressed store, hash-verified

37# Returns a set of tuples (address, is blinded, is OP_RETURN). (It would
38# feel nicer to return a set of dicts, but you can't do that in Python.)
39def outputs_info(outputs):
40 return {(
41 x["script"].get("address"),
42 x.get("blinding_pubkey") is not None,
43 x["script"]["asm"] == "OP_RETURN",
44 ) for x in outputs}
45
46
47# Create one-input, one-output, no-fee transaction:

Callers 2

run_basic_testsMethod · 0.85
run_ca_testsMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected