-
Notifications
You must be signed in to change notification settings - Fork 6
/
apiHyperBlock.go
28 lines (25 loc) · 1.67 KB
/
apiHyperBlock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package api
import (
"time"
"github.com/multiversx/mx-chain-core-go/data/transaction"
)
// Hyperblock contains all fully executed (both in source and in destination shards) transactions notarized in a given metablock
type Hyperblock struct {
Hash string `json:"hash"`
PrevBlockHash string `json:"prevBlockHash"`
StateRootHash string `json:"stateRootHash"`
Nonce uint64 `json:"nonce"`
Round uint64 `json:"round"`
Epoch uint32 `json:"epoch"`
NumTxs uint32 `json:"numTxs"`
AccumulatedFees string `json:"accumulatedFees,omitempty"`
DeveloperFees string `json:"developerFees,omitempty"`
AccumulatedFeesInEpoch string `json:"accumulatedFeesInEpoch,omitempty"`
DeveloperFeesInEpoch string `json:"developerFeesInEpoch,omitempty"`
Timestamp time.Duration `json:"timestamp,omitempty"`
EpochStartInfo *EpochStartInfo `json:"epochStartInfo,omitempty"`
EpochStartShardsData []*EpochStartShardData `json:"epochStartShardsData,omitempty"`
ShardBlocks []*NotarizedBlock `json:"shardBlocks"`
Transactions []*transaction.ApiTransactionResult `json:"transactions"`
Status string `json:"status,omitempty"`
}