Show / Hide Table of Contents

Class VersionInfoExtensions

Extension methods for retrieving version information from the network.

Inheritance
object
VersionInfoExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class VersionInfoExtensions

Methods

| Edit this page View Source

GetVersionInfoAsync(ConsensusClient, CancellationToken, Action<IConsensusContext>?)

Retrieves version information from the node.

Declaration
public static Task<VersionInfo> GetVersionInfoAsync(this ConsensusClient client, CancellationToken cancellationToken = default, Action<IConsensusContext>? configure = null)
Parameters
Type Name Description
ConsensusClient client

Consensus Client to query

CancellationToken cancellationToken

Optional cancellation token.

Action<IConsensusContext> configure

Optional callback method providing an opportunity to modify the execution configuration for just this method call. It is executed prior to submitting the request to the network.

Returns
Type Description
Task<VersionInfo>

Version information regarding the gossip network node.

Exceptions
Type Condition
ArgumentOutOfRangeException

If required arguments are missing.

InvalidOperationException

If required context configuration is missing.

PrecheckException

If the gateway node create rejected the request upon submission.

  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph