Smart Contract
Read these Chainlink and QuickNode articles to know how to read and interact with a smart contract.
Spot ESR
The following smart contracts are currently live:
Sepolia Testnet
The above table will be updated as the contract goes live on more blockchains.
Read Methods
All the relevant methods available to query are summarized below:
decimals
number of decimal points to apply on ESR value
ESR_PUBLISH_FREQUENCY
publish frequency of ESR in seconds
getLatestEsr
latest observation day ESR published as significant digits
getLatestEsrObservationDate
latest observation day as SOD unix timestamp
getDayEsr
takes UTC unix timestamp as input for any day and returns that day's ESR
getEarliestEsrDate
oldest historical ESR observation day available for query
Consensus ESR (DOR)
The following smart contracts are currently live:
Sepolia Testnet
The above table will be updated as the contract goes live on more blockchains.
Read Methods
All the relevant methods available to query are summarized below:
dor
DOR name
decimals
number of decimal points to apply on consensus value
getFirstRoundPublishTime
publish time of first consensus round in seconds
getActiveTenors
list of current active tenors for this DOR
getActiveTenorsUpdateBlock
block at which current active tenors were updated
getLatestRound
latest published round ID for this DOR
getLatestRoundPublishTime
publish time of latest round ID
getLatestRoundData
latest published consensus round data given an active tenor
getRoundDataFromId
historical consensus round's data given the round ID and an active tenor as of that round
Last updated