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"` Timestamp time.Duration `json:"timestamp,omitempty"` AccumulatedFees string `json:"accumulatedFees,omitempty"` DeveloperFees string `json:"developerFees,omitempty"` AccumulatedFeesInEpoch string `json:"accumulatedFeesInEpoch,omitempty"` DeveloperFeesInEpoch string `json:"developerFeesInEpoch,omitempty"` Status string `json:"status,omitempty"` }
Block represents the structure for block that is returned by api routes
type DelegatedValue ¶ added in v1.1.45
type DelegatedValue struct { DelegationScAddress string `json:"delegationScAddress"` Value string `json:"value"` }
DelegatedValue holds the value and the delegation system SC address
type Delegator ¶ added in v1.1.45
type Delegator struct { DelegatorAddress string `json:"delegatorAddress"` DelegatedTo []*DelegatedValue `json:"delegatedTo"` Total string `json:"total"` TotalAsBigInt *big.Int `json:"-"` }
Delegator holds the delegator address and the slice of delegated values
type DirectStakedValue ¶ added in v1.1.45
type DirectStakedValue struct { Address string `json:"address"` BaseStaked string `json:"baseStaked"` TopUp string `json:"topUp"` Total string `json:"total"` }
DirectStakedValue holds the total staked value for an address
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.