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 SourceName
Human-readable vault identifier reflecting its strategy (short key: "n").
Declaration
[JsonPropertyName("n")]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 SourceFromHex(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. |
ToHex()
Serializes to compact JSON, then hex-encodes for the Data field.
Declaration
public string ToHex()
Returns
| Type | Description |
|---|---|
| string |