Show / Hide Table of Contents

Class VaultDataFormat

Recommended structure for the Vault Data field. The JSON is whitespace-removed and hex-encoded (max 256 bytes).

Inheritance
object
VaultDataFormat
Namespace: Xrpl.Models.Ledger
Assembly: Xrpl.dll
Syntax
public class VaultDataFormat

Properties

| Edit this page View Source

Name

Human-readable vault identifier reflecting its strategy (short key: "n").

Declaration
[JsonPropertyName("n")]
public string Name { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Website

Associated website URL (omit protocol prefix and www, short key: "w").

Declaration
[JsonPropertyName("w")]
public string Website { get; set; }
Property Value
Type Description
string

Methods

| Edit this page View Source

FromHex(string)

Attempts to deserialize a VaultDataFormat from a hex-encoded Data field.

Declaration
public static VaultDataFormat FromHex(string hex)
Parameters
Type Name Description
string hex

The hex string from the Data field.

Returns
Type Description
VaultDataFormat

Deserialized VaultDataFormat or null if parsing fails.

| Edit this page View Source

ToHex()

Serializes to compact JSON, then hex-encodes for the Data field.

Declaration
public string ToHex()
Returns
Type Description
string
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX