OracleService class
Constructors
- OracleService(String? endpoint, {bool logsActivation = true})
Properties
- endpoint ↔ String?
-
endpoint is the HTTP URL to a Archethic node (acting as welcome node)
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- logsActivation → bool
-
logsActivation manage log activation
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closeOracleUpdatesSubscription(
ArchethicOracle archethicOracle) → void - Close the subscription
-
getOracleData(
{int timestamp = 0}) → Future< OracleUcoPrice> - return a value of Oracle Uco_Price in {OracleUcoPrice} from a timestamp if timestamp = 0 or not precised, the last price is returned @param {int} timestamp
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribeToOracleUpdates(
dynamic onUpdate(OracleUcoPrice?)) → Future< ArchethicOracle> - Subscribe to be notified when a new oracle data is stored
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited