Class OracleSet
Creates a new Oracle ledger entry or updates the fields of an existing one, using the Oracle ID.
Inherited Members
Namespace: Xrpl.Models.Transactions
Assembly: Xrpl.dll
Syntax
public class OracleSet : TransactionRequest, ITransactionRequest, IOracleSet, ITransactionCommon
Constructors
| Edit this page View SourceOracleSet()
Initializes a new instance of the OracleSet class.
Declaration
public OracleSet()
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. This field is required when creating a new Oracle ledger entry, but is optional for updates.
Declaration
[JsonPropertyName("AssetClass")]
public OracleBlob AssetClass { get; set; }
Property Value
| Type | Description |
|---|---|
| OracleBlob |
LastUpdateTime
The time the data was last updated, represented as a unix timestamp in seconds. The value must be within 300 seconds (5 minutes) of the ledger's close time.
Declaration
[JsonPropertyName("LastUpdateTime")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime? LastUpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable |
OracleDocumentID
A unique identifier of the price oracle for the Account.
Declaration
[JsonPropertyName("OracleDocumentID")]
public uint? OracleDocumentID { get; set; }
Property Value
| Type | Description |
|---|---|
| uint? |
PriceDataSeries
An array of up to 10 PriceData objects, each representing the price information for a token 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. A string assigned to it is taken as text; bytes are given through FromHex(string). This field is required when creating a new Oracle ledger entry, but is optional for updates.
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 |