gcx/backend/services/chain-indexer/internal/domain/entity/block.go

21 lines
510 B
Go

package entity
import "time"
type Block struct {
Height int64 `json:"height"`
Hash string `json:"hash"`
Timestamp time.Time `json:"timestamp"`
TxCount int `json:"txCount"`
}
type ChainTransaction struct {
Hash string `json:"hash"`
BlockHeight int64 `json:"blockHeight"`
From string `json:"from"`
To string `json:"to"`
Amount string `json:"amount"`
Status string `json:"status"`
Timestamp time.Time `json:"timestamp"`
}