Class LOOracle
An Oracle ledger entry holds data associated with a single price oracle, which can store information on up to 10 asset pairs.
Inherited Members
Namespace: Xrpl.Models.Ledger
Assembly: Xrpl.dll
Syntax
public class LOOracle : BaseLedgerEntry
Properties
| Edit this page View SourceAssetClass
Describes the type of asset, such as "currency", "commodity", or "index". Up to 16 bytes, conventionally printable ASCII text.
Declaration
[JsonPropertyName("AssetClass")]
public OracleBlob AssetClass { get; set; }
Property Value
| Type | Description |
|---|---|
| OracleBlob |
Flags
A bit-map of boolean flags. No flags are defined for the Oracle object type, so this value is always 0.
Declaration
[JsonPropertyName("Flags")]
public uint? Flags { get; set; }
Property Value
| Type | Description |
|---|---|
| uint? |
LastUpdateTime
The time the data was last updated, represented in Unix time. Note: Unlike many other time values on the XRP Ledger, this value does not use the Ripple Epoch.
Declaration
[JsonPropertyName("LastUpdateTime")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime? LastUpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable |
OracleDocumentID
The document id distinguishing this oracle among the owner's oracles.
Declaration
[JsonPropertyName("OracleDocumentID")]
public uint? OracleDocumentID { get; set; }
Property Value
| Type | Description |
|---|---|
| uint? |
Owner
The XRPL account with update and delete privileges for the oracle. It's recommended to set up multi-signing on this account.
Declaration
[JsonPropertyName("Owner")]
public string Owner { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OwnerNode
A hint indicating which page of the oracle owner's owner directory links to this entry, in case the directory consists of multiple pages.
Declaration
[JsonPropertyName("OwnerNode")]
public string OwnerNode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PreviousTxnID
The hash of the previous transaction that modified this entry.
Declaration
[JsonPropertyName("PreviousTxnID")]
public string PreviousTxnID { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PreviousTxnLgrSeq
The ledger index that this object was most recently modified or created in.
Declaration
[JsonPropertyName("PreviousTxnLgrSeq")]
public uint? PreviousTxnLgrSeq { get; set; }
Property Value
| Type | Description |
|---|---|
| uint? |
PriceDataSeries
An array of up to 10 PriceData objects, each representing the price information for an asset pair. More than five PriceData objects require two owner reserves.
Declaration
[JsonPropertyName("PriceDataSeries")]
public List<PriceDataWrapper> PriceDataSeries { get; set; }
Property Value
| Type | Description |
|---|---|
| List<PriceDataWrapper> |
Provider
An arbitrary value that identifies an oracle provider, such as Chainlink, Band, or DIA. Up to 256 bytes, conventionally printable ASCII text; TryGetText(out string) reads it as text.
Declaration
[JsonPropertyName("Provider")]
public OracleBlob Provider { get; set; }
Property Value
| Type | Description |
|---|---|
| OracleBlob |
URI
An optional Universal Resource Identifier to reference price data off-chain. This field is limited to 256 bytes.
Declaration
[JsonPropertyName("URI")]
public OracleBlob URI { get; set; }
Property Value
| Type | Description |
|---|---|
| OracleBlob |