Show / Hide Table of Contents

Class StringConversion

Canonical text ↔ hex conversion extensions. Hex output is UPPERCASE — the convention rippled uses in every JSON response — so SDK-generated hex compares Ordinal-equal against node output.

Inheritance
object
StringConversion
Namespace: Xrpl.Utils
Assembly: Xrpl.dll
Syntax
public static class StringConversion

Methods

| Edit this page View Source

ConvertStringToHex(string)

Encodes a UTF-8 string as an UPPERCASE hex string.

Declaration
public static string ConvertStringToHex(this string input)
Parameters
Type Name Description
string input

string

Returns
Type Description
string
| Edit this page View Source

FromHexString(string)

Decodes a UTF-8 hex string back to readable text. Bytes are decoded as-is (no trailing-null trimming) — pass the string through FromHex(string, bool) with trimTrailingNulls: true for zero-padded fixed-size fields.

Declaration
public static string FromHexString(this string input)
Parameters
Type Name Description
string input

UTF8 HEX string

Returns
Type Description
string
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX