mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 11:12:22 -04:00
Wallet: Distingush amounts for a single subaddress
Adding a new `amounts` field ot the output of `get_transfers` RPC method. This field specifies individual payments made to a single subaddress in a single transaction, e.g., made by this command: transfer <addr1> <amount1> <addr1> <amount2>
This commit is contained in:
parent
3c01bffd0c
commit
096a9dbdf9
4 changed files with 38 additions and 2 deletions
|
@ -1354,6 +1354,7 @@ namespace wallet_rpc
|
|||
typedef epee::misc_utils::struct_init<response_t> response;
|
||||
};
|
||||
|
||||
typedef std::vector<uint64_t> amounts_container;
|
||||
struct transfer_entry
|
||||
{
|
||||
std::string txid;
|
||||
|
@ -1361,6 +1362,7 @@ namespace wallet_rpc
|
|||
uint64_t height;
|
||||
uint64_t timestamp;
|
||||
uint64_t amount;
|
||||
amounts_container amounts;
|
||||
uint64_t fee;
|
||||
std::string note;
|
||||
std::list<transfer_destination> destinations;
|
||||
|
@ -1380,6 +1382,7 @@ namespace wallet_rpc
|
|||
KV_SERIALIZE(height);
|
||||
KV_SERIALIZE(timestamp);
|
||||
KV_SERIALIZE(amount);
|
||||
KV_SERIALIZE(amounts);
|
||||
KV_SERIALIZE(fee);
|
||||
KV_SERIALIZE(note);
|
||||
KV_SERIALIZE(destinations);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue