Casper.Network.SDK
Show / Hide Table of Contents

Class BlockHeader

A block header (alias for BlockHeaderV2)

Inheritance
object
BlockHeader
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class BlockHeader

Fields

| Edit this page View Source

_blockHeaderV1

Declaration
protected BlockHeaderV1 _blockHeaderV1
Field Value
Type Description
BlockHeaderV1
| Edit this page View Source

_blockHeaderV2

Declaration
protected BlockHeaderV2 _blockHeaderV2
Field Value
Type Description
BlockHeaderV2
| Edit this page View Source

_version

Declaration
protected int _version
Field Value
Type Description
int

Properties

| Edit this page View Source

AccumulatedSeed

A seed needed for initializing a future era.

Declaration
public string AccumulatedSeed { get; init; }
Property Value
Type Description
string
| Edit this page View Source

BodyHash

The hash of the block's body.

Declaration
public string BodyHash { get; init; }
Property Value
Type Description
string
| Edit this page View Source

CurrentGasPrice

The gas price of the era.

Declaration
public ushort CurrentGasPrice { get; init; }
Property Value
Type Description
ushort
| Edit this page View Source

EraEnd

The EraEnd of a block if it is a switch block.

Declaration
public EraEnd EraEnd { get; init; }
Property Value
Type Description
EraEnd
| Edit this page View Source

EraId

The era ID in which this block was created.

Declaration
public ulong EraId { get; init; }
Property Value
Type Description
ulong
| Edit this page View Source

Height

The height of this block, i.e. the number of ancestors.

Declaration
public ulong Height { get; init; }
Property Value
Type Description
ulong
| Edit this page View Source

LastSwitchBlockHash

Declaration
public string LastSwitchBlockHash { get; init; }
Property Value
Type Description
string
| Edit this page View Source

ParentHash

The parent block's hash.

Declaration
public string ParentHash { get; init; }
Property Value
Type Description
string
| Edit this page View Source

Proposer

Public key of the validator that proposed the block

Declaration
public Proposer Proposer { get; init; }
Property Value
Type Description
Proposer
| Edit this page View Source

ProtocolVersion

The protocol version of the network from when this block was created.

Declaration
public string ProtocolVersion { get; init; }
Property Value
Type Description
string
| Edit this page View Source

RandomBit

A random bit needed for initializing a future era.

Declaration
public bool RandomBit { get; init; }
Property Value
Type Description
bool
| Edit this page View Source

StateRootHash

The root hash of global state after the deploys in this block have been executed.

Declaration
public string StateRootHash { get; init; }
Property Value
Type Description
string
| Edit this page View Source

Timestamp

The timestamp from when the block was proposed.

Declaration
public string Timestamp { get; init; }
Property Value
Type Description
string
| Edit this page View Source

Version

Returns the version of the block.

Declaration
public int Version { get; }
Property Value
Type Description
int

Operators

| Edit this page View Source

explicit operator BlockHeaderV1(BlockHeader)

Declaration
public static explicit operator BlockHeaderV1(BlockHeader blockHeader)
Parameters
Type Name Description
BlockHeader blockHeader
Returns
Type Description
BlockHeaderV1
| Edit this page View Source

explicit operator BlockHeaderV2(BlockHeader)

Declaration
public static explicit operator BlockHeaderV2(BlockHeader blockHeader)
Parameters
Type Name Description
BlockHeader blockHeader
Returns
Type Description
BlockHeaderV2
| Edit this page View Source

explicit operator BlockHeader(BlockHeaderV1)

Declaration
public static explicit operator BlockHeader(BlockHeaderV1 blockHeader)
Parameters
Type Name Description
BlockHeaderV1 blockHeader
Returns
Type Description
BlockHeader
| Edit this page View Source

explicit operator BlockHeader(BlockHeaderV2)

Declaration
public static explicit operator BlockHeader(BlockHeaderV2 blockHeader)
Parameters
Type Name Description
BlockHeaderV2 blockHeader
Returns
Type Description
BlockHeader
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC