Merge bitcoin/bitcoin#36144: rpc: detail x-bitcoin-unit in openrpc help

e85e27976b rpc: detail x-bitcoin-unit in openrpc help (will)

Pull request description:

  Addresses review comment about clarifying this field: https://github.com/bitcoin/bitcoin/pull/36131#issuecomment-5480592255

ACKs for top commit:
  sedited:
    ACK e85e27976b

Tree-SHA512: 7fd0bef8a5d37cd9d2778463b2193c58ec7cced1aa790a0a5807ef093bd51e729b6c8880e1c12af78293eb68abe791f4ae6e96e0457ce85be717e3e776f5406d
This commit is contained in:
merge-script
2026-09-03 09:19:22 +01:00

View File

@@ -555,7 +555,8 @@ static RPCResult OpenRPCDocResult()
{RPCResult::Type::OBJ, "result", "Method result.",
{
{RPCResult::Type::STR, "name", "Result name."},
{RPCResult::Type::ANY, "schema", "JSON Schema for the result."},
{RPCResult::Type::ANY, "schema", "JSON Schema for the result. Numeric schemas may include "
"\"x-bitcoin-unit\" property: \"amount\" which denotes a Bitcoin amount in BTC."},
}},
{RPCResult::Type::STR, "x-bitcoin-category", "RPC category."},
}}}},