diff --git a/vochain/indexer/indexertypes/types.go b/vochain/indexer/indexertypes/types.go index b083b2e95..bc0e56485 100644 --- a/vochain/indexer/indexertypes/types.go +++ b/vochain/indexer/indexertypes/types.go @@ -178,10 +178,10 @@ type TxPackage struct { // Transaction holds the db reference for a single transaction type Transaction struct { - Hash types.HexBytes `json:"transactionHash" swaggertype:"string" example:"75e8f822f5dd13973ac5158d600f0a2a5fea4bfefce9712ab5195bf17884cfad"` - BlockHeight uint32 `json:"blockHeight" format:"int32" example:"64924"` - TxBlockIndex int32 `json:"transactionIndex" format:"int32" example:"0"` - TxType string `json:"transactionType" enums:"vote,newProcess,admin,setProcess,registerKey,mintTokens,sendTokens,setTransactionCosts,setAccount,collectFaucet,setKeykeeper" example:"Vote"` + Hash types.HexBytes `json:"hash" swaggertype:"string" example:"75e8f822f5dd13973ac5158d600f0a2a5fea4bfefce9712ab5195bf17884cfad"` + BlockHeight uint32 `json:"height" format:"int32" example:"64924"` + TxBlockIndex int32 `json:"index" format:"int32" example:"0"` + TxType string `json:"type" enums:"vote,newProcess,admin,setProcess,registerKey,mintTokens,sendTokens,setTransactionCosts,setAccount,collectFaucet,setKeykeeper" example:"Vote"` } func TransactionFromDB(dbtx *indexerdb.Transaction) *Transaction {