Class BlockData
Block information retrieved from a mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public class BlockData
Properties
| Edit this page View SourceCount
Number of transactions in this block.
Declaration
[JsonPropertyName("count")]
[JsonConverter(typeof(IntMirrorConverter))]
public int Count { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
GasUsed
The amount of gas that was used.
Declaration
[JsonPropertyName("gas_used")]
[JsonConverter(typeof(UnsignedLongMirrorConverter))]
public ulong GasUsed { get; set; }
Property Value
| Type | Description |
|---|---|
| ulong |
Hash
The Hash of the block.
Declaration
[JsonPropertyName("hash")]
[JsonConverter(typeof(HexStringToBytesConverter))]
public ReadOnlyMemory<byte> Hash { get; set; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<byte> |
LogsBloom
The bloom filter for this block.
Declaration
[JsonPropertyName("logs_bloom")]
[JsonConverter(typeof(HexStringToBytesConverter))]
public ReadOnlyMemory<byte> LogsBloom { get; set; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<byte> |
Name
The filename of this block exported by the gossip node network.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Number
The number identifier of this block.
Declaration
[JsonPropertyName("number")]
[JsonConverter(typeof(LongMirrorConverter))]
public long Number { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
PreviousHash
The Hash of the previous block.
Declaration
[JsonPropertyName("previous_hash")]
[JsonConverter(typeof(HexStringToBytesConverter))]
public ReadOnlyMemory<byte> PreviousHash { get; set; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<byte> |
Size
The size of this block.
Declaration
[JsonPropertyName("size")]
[JsonConverter(typeof(LongMirrorConverter))]
public long Size { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
TimestampRange
The consensus timestamp range this block covers.
Declaration
[JsonPropertyName("timestamp")]
public TimestampRangeData TimestampRange { get; set; }
Property Value
| Type | Description |
|---|---|
| TimestampRangeData |
Version
The Hedera API version number this block was created with.
Declaration
[JsonPropertyName("hapi_version")]
public string Version { get; set; }
Property Value
| Type | Description |
|---|---|
| string |