Class LOVault
A Vault ledger object represents a pooled asset vault.
Inherited Members
Namespace: Xrpl.Models.Ledger
Assembly: Xrpl.dll
Syntax
public class LOVault : BaseLedgerEntry
Remarks
Requires the Vault amendment (XLS-65d). This feature is in draft and subject to change.
Properties
| Edit this page View SourceAccount
The address of the vault's pseudo-account.
Declaration
[JsonPropertyName("Account")]
public string Account { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Asset
The primary asset held by the vault. Supports XRP, trust line tokens, and MPTs.
Declaration
[JsonPropertyName("Asset")]
[JsonConverter(typeof(IssuedCurrencyConverter))]
public Common.IssuedCurrency Asset { get; init; }
Property Value
| Type | Description |
|---|---|
| Common.IssuedCurrency |
AssetsAvailable
The asset amount that is available in the vault (STNumber type, serialized as string in JSON).
Declaration
[JsonPropertyName("AssetsAvailable")]
public string AssetsAvailable { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
AssetsMaximum
The maximum amount of assets the vault can hold, or 0 for no limit (STNumber type).
Declaration
[JsonPropertyName("AssetsMaximum")]
public string AssetsMaximum { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
AssetsTotal
The total value of the vault (STNumber type, serialized as string in JSON).
Declaration
[JsonPropertyName("AssetsTotal")]
public string AssetsTotal { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Data
Arbitrary hex-encoded data associated with the vault, limited to 256 bytes. Use DataParsed for a human-readable representation.
Declaration
[JsonPropertyName("Data")]
public string Data { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
DataParsed
Decoded human-readable value of the Data field. Follows the recommended format: {"n":"name","w":"website"}. Returns null if parsing fails or Data is empty.
Declaration
[JsonIgnore]
public VaultDataFormat DataParsed { get; }
Property Value
| Type | Description |
|---|---|
| VaultDataFormat |
DataRaw
Decoded human-readable UTF-8 string of the Data field.
Declaration
[JsonIgnore]
public string DataRaw { get; }
Property Value
| Type | Description |
|---|---|
| string |
LEVersion
Schema version of this ledger entry (UInt8), see VaultVersion. Absent on vaults created before cash-basis accounting was activated, which rippled resolves as Legacy (0) rather than an error.
Declaration
[JsonPropertyName("LEVersion")]
public uint? LEVersion { get; init; }
Property Value
| Type | Description |
|---|---|
| uint? |
LossUnrealized
The potential loss amount that is not yet realized, expressed as the vault's asset (STNumber type).
Declaration
[JsonPropertyName("LossUnrealized")]
public string LossUnrealized { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Owner
The account address of the Vault Owner.
Declaration
[JsonPropertyName("Owner")]
public string Owner { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
OwnerNode
A hint indicating which page of the owner's directory links to this object (UInt64).
Declaration
[JsonPropertyName("OwnerNode")]
public string OwnerNode { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
PreviousTxnID
The identifying hash of the transaction that most recently modified this object.
Declaration
[JsonPropertyName("PreviousTxnID")]
public string PreviousTxnID { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
PreviousTxnLgrSeq
The index of the ledger that contains the transaction that most recently modified this object.
Declaration
[JsonPropertyName("PreviousTxnLgrSeq")]
public uint? PreviousTxnLgrSeq { get; init; }
Property Value
| Type | Description |
|---|---|
| uint? |
RedemptionDate
LendingProtocolV1_1: the start of a closed-ended vault's redemption phase. Absent on open-ended vaults.
Declaration
[JsonPropertyName("RedemptionDate")]
[JsonConverter(typeof(RippleDateTimeConverter))]
public DateTime? RedemptionDate { get; init; }
Property Value
| Type | Description |
|---|---|
| Nullable |
Scale
The scale (decimal precision) for share calculations. 0-18 for trust line tokens; fixed at 0 for XRP/MPTs.
Declaration
[JsonPropertyName("Scale")]
public uint? Scale { get; init; }
Property Value
| Type | Description |
|---|---|
| uint? |
Sequence
The transaction sequence number that created the vault.
Declaration
[JsonPropertyName("Sequence")]
public uint? Sequence { get; init; }
Property Value
| Type | Description |
|---|---|
| uint? |
ShareMPTID
The identifier of the share MPTokenIssuance object.
Declaration
[JsonPropertyName("ShareMPTID")]
public string ShareMPTID { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
SubscriptionDate
LendingProtocolV1_1: the end of a closed-ended vault's subscription phase. Absent on open-ended vaults.
Declaration
[JsonPropertyName("SubscriptionDate")]
[JsonConverter(typeof(RippleDateTimeConverter))]
public DateTime? SubscriptionDate { get; init; }
Property Value
| Type | Description |
|---|---|
| Nullable |
VaultKind
LendingProtocolV1_1: the kind of vault (UInt8), see VaultKind. Absent on open-ended vaults, which rippled resolves as OpenEnded (0).
Declaration
[JsonPropertyName("VaultKind")]
public uint? VaultKind { get; init; }
Property Value
| Type | Description |
|---|---|
| uint? |
WithdrawalPolicy
The withdrawal policy for the vault (UInt8).
Declaration
[JsonPropertyName("WithdrawalPolicy")]
public uint? WithdrawalPolicy { get; init; }
Property Value
| Type | Description |
|---|---|
| uint? |