Namespace Hiero.Converters
Classes
AccessListConverter
EIP-2930 Access List JSON Converter
Base64StringToBytesConverter
Converts a base64-encoded JSON string to a ReadOnlyMemory<T> of bytes and back.
BigIntegerArrayConverter
Converts a JSON array of strings (representing hex values) to an array of BigIntegers and vice versa.
BigIntegerConverter
Converts BigInteger to and from hexadecimal JSON string values, using the 0x-prefixed format.
BooleanMirrorConverter
Boolean JSON converter that tolerates string representations from mirror node responses.
ConsensusNodeEndpointConverter
Converts a ConsensusNodeEndpoint to and from a JSON object
with address (node id) and url properties, plus an optional
certHash property holding the TLS certificate hash as hex
(written in lowercase, and only when the endpoint has one).
ConsensusTimeStampConverter
Converts a ConsensusTimeStamp to and from its canonical
dotted seconds.nanos JSON string form.
ConsensusTimeStampForExchangeRateConverter
Converts a ConsensusTimeStamp to and from a numeric JSON value of whole seconds. Specific to exchange-rate data, which expresses its expiration as a bare seconds number rather than the dotted seconds.nanos string used elsewhere.
ConsensusTimeStampForTokenExpirationConverter
Converts a ConsensusTimeStamp to and from a numeric JSON value of nanoseconds since the epoch. Specific to the expiry timestamp returned in token info, which is reported in whole nanoseconds rather than the dotted seconds.nanos string used elsewhere.
EncodedParamsConverter
Converts an EncodedParams to and from a 0x-prefixed hexadecimal JSON string.
EndorsementConverter
Endorsement JSON Converter
EntityIdArrayConverter
Entity ID Array JSON Converter
EntityIdConverter
Entity ID JSON Converter, can handle both hapi ids and evm addresses.
EvmAddressArrayConverter
EVM Address Array JSON Converter
EvmAddressConverter
EVM Address JSON Converter
EvmHashConverter
Converts an EvmHash to and from a 0x-prefixed hexadecimal JSON string,
including as a property name.
FeeLimitFromStringConverter
Fee Limit JSON Converter (from string value)
FreezeStatusConverter
Converts the mirror node freeze-status string (FROZEN/UNFROZEN)
to and from a TokenTradableStatus.
HexStringArraytoBytesArrayConverter
Converts a JSON array of hexadecimal strings to an array of ReadOnlyMemory<T> byte buffers and back.
HexStringDictionaryToBytesConverter
Converts a JSON object whose values are hex-encoded byte strings into a Dictionary<TKey, TValue> keyed by the raw property name, with the values decoded to ReadOnlyMemory<T> of bytes. Keys are preserved as their on-the-wire string form (hex values for EVM storage keys are conventionally displayed as hex, so this avoids a lossy round-trip through decoded bytes).
HexStringToBytesConverter
Converts a (optionally 0x-prefixed) hexadecimal JSON string to a
ReadOnlyMemory<T> of bytes and back, writing with a 0x prefix.
IntMirrorConverter
Reads an int from a JSON number or numeric string (a mirror node
quirk), treating null or unparseable input as zero.
LongMirrorConverter
Reads a long from a JSON number or numeric string (a mirror node
quirk), treating null or unparseable input as zero.
NftConverter
Nft JSON Converter
NullableEvmAddressConverter
Nullable EVM-address converter that preserves an explicit
wire-null as a C# null, rather than coercing it to
None (the all-zeros sentinel). The plain
EvmAddressConverter collapses both forms — useful when
the server never sends null — but on endpoints that do send null
to distinguish "no address" from "the literal zero address" (e.g.
contract-action to fields, where CREATE actions can leave
the recipient null), use this converter.
NullableLongMirrorConverter
Nullable-long converter that preserves explicit null
values rather than coercing them to zero. Mirrors the
string/number tolerance of LongMirrorConverter.
PauseStatusConverter
Converts the mirror node pause-status string (PAUSED/UNPAUSED)
to and from a TokenTradableStatus.
ResponseCodeConverter
Response Code Converter
TokenKycStatusConverter
Converts the mirror node KYC-status string (GRANTED/REVOKED)
to and from a TokenKycStatus.
TokenTypeConverter
Converts the mirror node token-type string (FUNGIBLE_COMMON/NON_FUNGIBLE_UNIQUE)
to and from a TokenType.
TransactionIdMirrorConverter
TransactionId Converter for reading and writing JSON when interacting with a mirror node.
TransactionIdStructuredConverter
Structured Transaction ID JSON Converter (for mirror node chunk information)
UnsignedLongMirrorConverter
Reads a ulong from a JSON number or numeric string (a mirror node
quirk), treating null or unparseable input as zero.
ValidDurationInSecondsConverter
Converter for TimeSpan values that represent a valid duration in seconds.