Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
Nonce uint64 `json:"nonce"`
Round uint64 `json:"round"`
Hash string `json:"hash"`
PrevBlockHash string `json:"prevBlockHash"`
Epoch uint32 `json:"epoch"`
Shard uint32 `json:"shard"`
NumTxs uint32 `json:"numTxs"`
NotarizedBlocks []*NotarizedBlock `json:"notarizedBlocks,omitempty"`
MiniBlocks []*MiniBlock `json:"miniBlocks,omitempty"`
}
Block represents the structure for block that is returned by api routes
type MiniBlock ¶
type MiniBlock struct {
Hash string `json:"hash"`
Type string `json:"type"`
SourceShard uint32 `json:"sourceShard"`
DestinationShard uint32 `json:"destinationShard"`
Transactions []*transaction.ApiTransactionResult `json:"transactions,omitempty"`
}
MiniBlock represents the structure for a miniblock
type NotarizedBlock ¶
type NotarizedBlock struct {
Hash string `json:"hash"`
Nonce uint64 `json:"nonce"`
Shard uint32 `json:"shard"`
}
NotarizedBlock represents a notarized block
Click to show internal directories.
Click to hide internal directories.