Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIBlock ¶ added in v1.0.147
type APIBlock struct {
Nonce uint64 `form:"nonce" json:"nonce"`
Round uint64 `form:"round" json:"round"`
Hash string `form:"hash" json:"hash"`
Epoch uint32 `form:"epoch" json:"epoch"`
ShardID uint32 `form:"shardID" json:"shardID"`
NumTxs uint32 `form:"numTxs" json:"numTxs"`
NotarizedBlockHashes []string `form:"notarizedBlockHashes" json:"notarizedBlockHashes,omitempty"`
MiniBlocks []*APIMiniBlock `form:"miniBlocks" json:"miniBlocks,omitempty"`
}
APIBlock represents the structure for block that is returned by api routes
type APIMiniBlock ¶ added in v1.0.147
type APIMiniBlock struct {
Hash string `form:"hash" json:"hash"`
Type string `form:"type" json:"type"`
SourceShardID uint32 `form:"sourceShardID" json:"sourceShardID"`
DestinationShardID uint32 `form:"destinationShardID" json:"destinationShardID"`
Transactions []*transaction.ApiTransactionResult `form:"transactions" json:"transactions,omitempty"`
}
APIMiniBlock represents the structure for a miniblock
Click to show internal directories.
Click to hide internal directories.