MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ScriptPubKeyDoc

Function ScriptPubKeyDoc

src/rpc/util.cpp:1400–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1398}
1399
1400std::vector<RPCResult> ScriptPubKeyDoc() {
1401 return
1402 {
1403 {RPCResult::Type::STR, "asm", "Disassembly of the output script"},
1404 {RPCResult::Type::STR, "desc", "Inferred descriptor for the output"},
1405 {RPCResult::Type::STR_HEX, "hex", "The raw output script bytes, hex-encoded"},
1406 {RPCResult::Type::STR, "address", /*optional=*/true, "The Bitcoin address (only if a well-defined address exists)"},
1407 {RPCResult::Type::STR, "type", "The type (one of: " + GetAllOutputTypes() + ")"},
1408 };
1409}
1410
1411uint256 GetTarget(const CBlockIndex& blockindex, const uint256 pow_limit)
1412{

Callers 3

rawtransaction.cppFile · 0.85
TxDocFunction · 0.85
getdescriptoractivityFunction · 0.85

Calls 1

GetAllOutputTypesFunction · 0.85

Tested by

no test coverage detected