Interface OracleSet
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableOracleSet
Creates a new Oracle ledger entry or updates the fields of an existing one, using the Oracle ID.
-
Field Summary
Fields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
typeMap -
Method Summary
Modifier and TypeMethodDescriptionDescribes the type of asset, such as "currency", "commodity", or "index".static ImmutableOracleSet.Builderbuilder()Construct aOracleSetbuilder.default TransactionFlagsflags()Set ofTransactionFlagss for thisOracleSet, which only allows thetfFullyCanonicalSigflag, which is deprecated.com.google.common.primitives.UnsignedIntegerThe time the data was last updated, represented in Unix time.A unique identifier of the price oracle for the account.An array of up to 10 PriceData objects, each representing the price information for a token pair.provider()An arbitrary value that identifies an oracle provider, such as Chainlink, Band, or DIA.uri()An optional Universal Resource Identifier to reference price data off-chain.Methods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
account, accountTransactionId, delegate, fee, lastLedgerSequence, memos, networkId, sequence, signers, signingPublicKey, sourceTag, ticketSequence, transactionFlags, transactionSignature, transactionType, unknownFields, validateDelegateNotSameAsAccount
-
Method Details
-
builder
Construct aOracleSetbuilder.- Returns:
- An
ImmutableOracleSet.Builder.
-
flags
Set ofTransactionFlagss for thisOracleSet, which only allows thetfFullyCanonicalSigflag, which is deprecated.The value of the flags can be set manually, but exists mostly for JSON serialization/deserialization only and for proper signature computation in rippled.
- Returns:
- Always
TransactionFlags.EMPTY.
-
oracleDocumentId
OracleDocumentId oracleDocumentId()A unique identifier of the price oracle for the account.- Returns:
- An
UnsignedInteger.
-
provider
Optional<OracleProvider> provider()An arbitrary value that identifies an oracle provider, such as Chainlink, Band, or DIA. This field is a string, up to 256 ASCII hex encoded characters (0x20-0x7E). This field is required when creating a new Oracle ledger entry, but is optional for updates. -
uri
An optional Universal Resource Identifier to reference price data off-chain. This field is limited to 256 bytes. -
lastUpdateTime
com.google.common.primitives.UnsignedInteger lastUpdateTime()The time the data was last updated, represented in Unix time.- Returns:
- An
UnsignedInteger.
-
assetClass
Describes the type of asset, such as "currency", "commodity", or "index". This field is a string, up to 16 ASCII hex encoded characters (0x20-0x7E). This field is required when creating a new Oracle ledger entry, but is optional for updates. -
priceDataSeries
List<PriceDataWrapper> 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.
-