Merge pull request #3174 from Roasbeef/raw-tx-hex-get-transactions
multi: add raw tx hex to GetTransactions response
This commit is contained in:
6 files changed
+515
-489
No files matched your search
@@ -3541,6 +3541,7 @@ func (r *rpcServer) SubscribeTransactions(req *lnrpc.GetTransactionsRequest,
|
||||
BlockHash: tx.BlockHash.String(),
|
||||
TimeStamp: tx.Timestamp,
|
||||
TotalFees: tx.TotalFees,
|
||||
RawTxHex: hex.EncodeToString(tx.RawTx),
|
||||
}
|
||||
if err := updateStream.Send(detail); err != nil {
|
||||
return err
|
||||
@@ -3552,6 +3553,7 @@ func (r *rpcServer) SubscribeTransactions(req *lnrpc.GetTransactionsRequest,
|
||||
Amount: int64(tx.Value),
|
||||
TimeStamp: tx.Timestamp,
|
||||
TotalFees: tx.TotalFees,
|
||||
RawTxHex: hex.EncodeToString(tx.RawTx),
|
||||
}
|
||||
if err := updateStream.Send(detail); err != nil {
|
||||
return err
|
||||
@@ -3599,6 +3601,7 @@ func (r *rpcServer) GetTransactions(ctx context.Context,
|
||||
TimeStamp: tx.Timestamp,
|
||||
TotalFees: tx.TotalFees,
|
||||
DestAddresses: destAddresses,
|
||||
RawTxHex: hex.EncodeToString(tx.RawTx),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user