Show / Hide Table of Contents

Class TransactionIdMirrorConverter

TransactionId Converter for reading and writing JSON when interacting with a mirror node.

Inheritance
object
JsonConverter
JsonConverter<TransactionId>
TransactionIdMirrorConverter
Inherited Members
JsonConverter<TransactionId>.CanConvert(Type)
JsonConverter<TransactionId>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<TransactionId>.WriteAsPropertyName(Utf8JsonWriter, TransactionId, JsonSerializerOptions)
JsonConverter<TransactionId>.HandleNull
JsonConverter<TransactionId>.Type
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero.Converters
Assembly: Hiero.dll
Syntax
public sealed class TransactionIdMirrorConverter : JsonConverter<TransactionId>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type TransactionId.

Declaration
public override TransactionId? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonReader reader

The reader.

Type typeToConvert

The type to convert.

JsonSerializerOptions options

An object that specifies serialization options to use.

Returns
Type Description
TransactionId

The converted value.

Overrides
JsonConverter<TransactionId>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
| Edit this page View Source

Write(Utf8JsonWriter, TransactionId, JsonSerializerOptions)

Writes a specified value as JSON.

Declaration
public override void Write(Utf8JsonWriter writer, TransactionId txId, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer

The writer to write to.

TransactionId txId
JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
JsonConverter<TransactionId>.Write(Utf8JsonWriter, TransactionId, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph