Table of Contents

Class BlockHash

Namespace
Concordium.Sdk.Types
Assembly
Concordium.Sdk.dll

Represents a block hash.

A block hash is a 32-byte hash of a block and serves as the canonical way of identifying it.

The address is usually provided as a hex encoded string.

public sealed record BlockHash : Hash, IEquatable<Hash>, IEquatable<BlockHash>
Inheritance
BlockHash
Implements
Inherited Members

Methods

From(byte[])

Creates an instance from a block hash represented represented by a length-32 byte array.

public static BlockHash From(byte[] blockHashAsBytes)

Parameters

blockHashAsBytes byte[]

A block hash represented as a length-32 byte array.

Returns

BlockHash

From(string)

Creates an instance from a block hash represented by a length-64 hex encoded string.

public static BlockHash From(string blockHashAsBase16String)

Parameters

blockHashAsBase16String string

A block hash represented as a length-64 hex encoded string.

Returns

BlockHash

ToBlockHashInput()

Converts the block hash to a corresponding BlockHashInput

This can be used as the input for class methods of RawClient.

public BlockHashInput ToBlockHashInput()

Returns

BlockHashInput

ToProto()

Converts the block hash to its corresponding protocol buffer message instance.

This can be used as input for class methods of RawClient.

public BlockHash ToProto()

Returns

BlockHash