diff options
author | w0xlt <woltx@protonmail.com> | 2022-10-19 16:10:04 -0300 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-10-28 18:01:36 +0800 |
commit | d5701900fcf70220701a1686588114db165dce1c (patch) | |
tree | fa1a5ca8fc06edb07fdd3e06ad2d307bfc00b4a2 /src/wallet/rpc | |
parent | e4b8c9b2bf2118064e68d33f6b7207e721ae03dd (diff) | |
download | bitcoin-d5701900fcf70220701a1686588114db165dce1c.tar.xz |
rpc: make `address` field optional
Github-Pull: #26349
Rebased-From: eb679a7896ce00e322972a011b023661766923b9
Diffstat (limited to 'src/wallet/rpc')
-rw-r--r-- | src/wallet/rpc/transactions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpc/transactions.cpp b/src/wallet/rpc/transactions.cpp index 0e13e4756b..6b9ec8ce10 100644 --- a/src/wallet/rpc/transactions.cpp +++ b/src/wallet/rpc/transactions.cpp @@ -447,7 +447,7 @@ RPCHelpMan listtransactions() {RPCResult::Type::OBJ, "", "", Cat(Cat<std::vector<RPCResult>>( { {RPCResult::Type::BOOL, "involvesWatchonly", /*optional=*/true, "Only returns true if imported addresses were involved in transaction."}, - {RPCResult::Type::STR, "address", "The bitcoin address of the transaction."}, + {RPCResult::Type::STR, "address", /*optional=*/true, "The bitcoin address of the transaction (not returned if the output does not have an address, e.g. OP_RETURN null data)."}, {RPCResult::Type::STR, "category", "The transaction category.\n" "\"send\" Transactions sent.\n" "\"receive\" Non-coinbase transactions received.\n" @@ -561,7 +561,7 @@ RPCHelpMan listsinceblock() {RPCResult::Type::OBJ, "", "", Cat(Cat<std::vector<RPCResult>>( { {RPCResult::Type::BOOL, "involvesWatchonly", /*optional=*/true, "Only returns true if imported addresses were involved in transaction."}, - {RPCResult::Type::STR, "address", "The bitcoin address of the transaction."}, + {RPCResult::Type::STR, "address", /*optional=*/true, "The bitcoin address of the transaction (not returned if the output does not have an address, e.g. OP_RETURN null data)."}, {RPCResult::Type::STR, "category", "The transaction category.\n" "\"send\" Transactions sent.\n" "\"receive\" Non-coinbase transactions received.\n" |