Oracle

The Oracle library exposes access to the oracle features of Phantasma

MethodReturn typeDescription

Oracle.read(url:String)

None

Executes an URL read via oracles. The URL must be a valid Phantasma Oracle URL.

Oracle.price(symbol:String)

None

Reads the current price of the given symbol via oracles.

Oracle.quote(baseSymbol:String, quoteSymbol:String, amount:Number)

None

Returns the current price converted to the given quote symbol with the given amount, via oracles.

Last updated