lnrpc: display transaction label in transaction details
This commit is contained in:
7 files changed
+756
-729
No files matched your search
+739
-729
File diff suppressed because it is too large.
Load diff
@@ -708,6 +708,9 @@ message Transaction {
|
||||
|
||||
// The raw transaction hex.
|
||||
string raw_tx_hex = 9;
|
||||
|
||||
// A label that was optionally set on transaction broadcast.
|
||||
string label = 10;
|
||||
}
|
||||
message GetTransactionsRequest {
|
||||
/*
|
||||
|
||||
@@ -4455,6 +4455,10 @@
|
||||
"raw_tx_hex": {
|
||||
"type": "string",
|
||||
"description": "The raw transaction hex."
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "A label that was optionally set on transaction broadcast."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -36,6 +36,7 @@ func RPCTransactionDetails(txns []*lnwallet.TransactionDetail) *TransactionDetai
|
||||
TotalFees: tx.TotalFees,
|
||||
DestAddresses: destAddresses,
|
||||
RawTxHex: hex.EncodeToString(tx.RawTx),
|
||||
Label: tx.Label,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,6 +93,10 @@
|
||||
"raw_tx_hex": {
|
||||
"type": "string",
|
||||
"description": "The raw transaction hex."
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "A label that was optionally set on transaction broadcast."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user