Crypto Index Value
How do I access crypto index values using the DIA oracle system?
The oracle contains information about index values of crypto indices. You can access index values for all current indices offered by DIA. You can execute an oracle call as follows:
  1. 1.
    Access DIA's Crypto Index Oracle
  2. 2.
    Call getValue(key) where key is the symbol for the index in capital letters, for instance SCIFI for the SCIFI Index. You can use the "Read" section on Etherscan to execute this call.
  3. 3.
    The response of the call contains two values:
    1. 1.
      The current index value with a fix-comma notation of six decimals.
    2. 2.
      The UNIX timestamp of the last oracle update.
Query String
Response Format
Returns the current value of the SCIFI crypto index
  • Index value (fix comma format with 6 digits)
  • UNIX timestamp of last update
Last modified 3mo ago
Export as PDF
Copy link