rpc: detail x-bitcoin-unit in openrpc help

This commit is contained in:
will
2026-09-02 09:27:53 +01:00
parent dc0395c585
commit e85e27976b

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."},
}}}},