api

package
v1.1.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL