Class BlockHashConverter
JSON converter for block hash that handles "blk-" prefixed base32 format
Inherited Members
JsonConverter<byte[]>.WriteJson(JsonWriter, byte[], JsonSerializer)
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
public class BlockHashConverter : JsonConverter<byte[]>
Methods
| Edit this page View SourceReadJson(JsonReader, Type, byte[]?, bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override byte[]? ReadJson(JsonReader reader, Type objectType, byte[]? existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
| Type | objectType | Type of the object. |
| byte[] | existingValue | The existing value of object being read. If there is no existing value then |
| bool | hasExistingValue | The existing value has a value. |
| JsonSerializer | serializer | The calling serializer. |
Returns
| Type | Description |
|---|---|
| byte[] | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, byte[]?, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, byte[]? value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
| byte[] | value | The value. |
| JsonSerializer | serializer | The calling serializer. |