Interface OracleSet

All Superinterfaces:
Transaction
All Known Implementing Classes:
ImmutableOracleSet

@Beta @Immutable public interface OracleSet extends Transaction
Creates a new Oracle ledger entry or updates the fields of an existing one, using the Oracle ID.
  • Method Details

    • builder

      static ImmutableOracleSet.Builder builder()
      Construct a OracleSet builder.
      Returns:
      An ImmutableOracleSet.Builder.
    • flags

      @Default default TransactionFlags flags()
      Set of TransactionFlagss for this OracleSet, which only allows the tfFullyCanonicalSig flag, 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

      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.
      Returns:
      An Optional String.
    • uri

      An optional Universal Resource Identifier to reference price data off-chain. This field is limited to 256 bytes.
      Returns:
      An Optional String.
    • lastUpdateTime

      com.google.common.primitives.UnsignedInteger lastUpdateTime()
      The time the data was last updated, represented in Unix time.
      Returns:
      An UnsignedInteger.
    • assetClass

      Optional<String> 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.
      Returns:
      An Optional String.
    • 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.
      Returns:
      A List of PriceData.