| 1398 | } |
| 1399 | |
| 1400 | std::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 | |
| 1411 | uint256 GetTarget(const CBlockIndex& blockindex, const uint256 pow_limit) |
| 1412 | { |
no test coverage detected