Casper.Network.SDK
Show / Hide Table of Contents

Class Block

Inheritance
object
Block
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 Block

Fields

| Edit this page View Source

_blockV1

Declaration
protected BlockV1 _blockV1
Field Value
Type Description
BlockV1
| Edit this page View Source

_blockV2

Declaration
protected BlockV2 _blockV2
Field Value
Type Description
BlockV2
| 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

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

Hash

Block hash

Declaration
public string Hash { get; init; }
Property Value
Type Description
string
| 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

RewardedSignatures

Describes finality signatures that will be rewarded in a block. Consists of a vector of SingleBlockRewardedSignatures, each of which describes signatures for a single ancestor block. The first entry represents the signatures for the parent block, the second for the parent of the parent, and so on.

Declaration
public List<List<ushort>> RewardedSignatures { get; init; }
Property Value
Type Description
List<List<ushort>>
| 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

Transactions

Declaration
public List<BlockTransaction> Transactions { get; init; }
Property Value
Type Description
List<BlockTransaction>
| 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 BlockV1(Block)

Declaration
public static explicit operator BlockV1(Block block)
Parameters
Type Name Description
Block block
Returns
Type Description
BlockV1
| Edit this page View Source

explicit operator BlockV2(Block)

Declaration
public static explicit operator BlockV2(Block block)
Parameters
Type Name Description
Block block
Returns
Type Description
BlockV2
| Edit this page View Source

explicit operator Block(BlockV1)

Declaration
public static explicit operator Block(BlockV1 block)
Parameters
Type Name Description
BlockV1 block
Returns
Type Description
Block
| Edit this page View Source

explicit operator Block(BlockV2)

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