From dbc5f9322a876f0dae4df52548b7df2147ca6df7 Mon Sep 17 00:00:00 2001 From: Philemon Ukane Date: Thu, 8 Aug 2024 02:54:31 +0100 Subject: [PATCH] return vout for transactions Signed-off-by: Philemon Ukane --- cgo/transactions.go | 1 + cgo/types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cgo/transactions.go b/cgo/transactions.go index 1dc3a2a..07ac053 100644 --- a/cgo/transactions.go +++ b/cgo/transactions.go @@ -174,6 +174,7 @@ func listTransactions(cName, cFrom, cCount *C.char) *C.char { Fee: ltw.Fee, Time: ltw.Time, TxID: ltw.TxID, + Vout: ltw.Vout, } ltRes[i] = lt } diff --git a/cgo/types.go b/cgo/types.go index 9ac6415..76f6da2 100644 --- a/cgo/types.go +++ b/cgo/types.go @@ -136,6 +136,7 @@ type ListTransactionRes struct { Fee *float64 `json:"fee,omitempty"` Time int64 `json:"time"` TxID string `json:"txid"` + Vout uint32 `json:"vout"` } type BirthdayState struct {