Skip to content

Commit

Permalink
update the transaction fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tok-kkk committed Feb 2, 2024
1 parent 38f5826 commit c04cebc
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions btc/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,21 @@ const (
)

type Transaction struct {
TxID string `json:"txid"`
VINs []VIN `json:"vin"`
VOUTs []Prevout `json:"vout"`
Status Status `json:"status"`
TxID string `json:"txid"`
Version int `json:"version"`
LockTime int `json:"lock_time"`
VINs []VIN `json:"vin"`
VOUTs []Prevout `json:"vout"`
Status Status `json:"status"`
}

type VIN struct {
TxID string `json:"txid"`
Vout int `json:"vout"`
Prevout Prevout `json:"prevout"`
ScriptSigAsm string `json:"scriptsig_asm"`
Witness *[]string `json:"witness" `
TxID string `json:"txid"`
Vout int `json:"vout"`
Prevout Prevout `json:"prevout"`
ScriptSig string `json:"scriptsig"`
Witness *[]string `json:"witness"`
Sequence int `json:"sequence"`
}

type Prevout struct {
Expand Down

0 comments on commit c04cebc

Please sign in to comment.