NFT Oracle
How do I access NFT pricing data using the DIA oracle system?
The oracle contains information about NFT collections' prices (see sources). It can hold up to six values. For the current deployed demo version you can access a collection's latest floor price and the current circulating supply as well as the timestamp of the last update.
​
  1. 1.
    Access the corresponding oracle smart contract.
  2. 2.
    Call getValue(collection_id) with collection_id being the string Blockchain-Address , for instance Ethereum-0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D for Bored Apes Yacht Club. You can use the "Read" section on Etherscan to execute this call.
  3. 3.
    The current version of the DIA demo oracle contains the following values:
    1. 1.
      The current floor price in the blockchain's native currency with a fix-comma notation of eight decimals (see API endpoint).
    2. 2.
      The 30-day moving average of the floor price (see API endpoint).
    3. 3.
      The UNIX timestamp of the last oracle update.
See the list of collections available on the oracle
Export as PDF
Copy link