Class Block
Assembly: Casper.Network.SDK.dll
Syntax
Fields
|
Edit this page
View Source
_blockV1
Declaration
protected BlockV1 _blockV1
Field Value
|
Edit this page
View Source
_blockV2
Declaration
protected BlockV2 _blockV2
Field Value
|
Edit this page
View Source
_version
Declaration
Field Value
Properties
|
Edit this page
View Source
AccumulatedSeed
A seed needed for initializing a future era.
Declaration
public string AccumulatedSeed { get; init; }
Property Value
|
Edit this page
View Source
CurrentGasPrice
The gas price of the era.
Declaration
public ushort CurrentGasPrice { get; init; }
Property Value
|
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
|
Edit this page
View Source
EraId
The era ID in which this block was created.
Declaration
public ulong EraId { get; init; }
Property Value
|
Edit this page
View Source
Hash
Declaration
public string Hash { get; init; }
Property Value
|
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
|
Edit this page
View Source
LastSwitchBlockHash
Declaration
public string LastSwitchBlockHash { get; init; }
Property Value
|
Edit this page
View Source
ParentHash
Declaration
public string ParentHash { get; init; }
Property Value
|
Edit this page
View Source
Proposer
Public key of the validator that proposed the block
Declaration
public Proposer Proposer { get; init; }
Property Value
|
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
|
Edit this page
View Source
RandomBit
A random bit needed for initializing a future era.
Declaration
public bool RandomBit { get; init; }
Property Value
|
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
|
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
|
Edit this page
View Source
Timestamp
The timestamp from when the block was proposed.
Declaration
public string Timestamp { get; init; }
Property Value
|
Edit this page
View Source
Transactions
Declaration
public List<BlockTransaction> Transactions { get; init; }
Property Value
|
Edit this page
View Source
Version
Returns the version of the block.
Declaration
public int Version { get; }
Property Value
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
|
Edit this page
View Source
explicit operator BlockV2(Block)
Declaration
public static explicit operator BlockV2(Block block)
Parameters
| Type |
Name |
Description |
| Block |
block |
|
Returns
|
Edit this page
View Source
explicit operator Block(BlockV1)
Declaration
public static explicit operator Block(BlockV1 block)
Parameters
| Type |
Name |
Description |
| BlockV1 |
block |
|
Returns
|
Edit this page
View Source
explicit operator Block(BlockV2)
Declaration
public static explicit operator Block(BlockV2 block)
Parameters
| Type |
Name |
Description |
| BlockV2 |
block |
|
Returns