Smart Contract
Read these Chainlink and QuickNode articles to know how to read and interact with a smart contract.
Spot TESR
The following smart contracts are currently live:
Sepolia Testnet
Ethereum Mainnet
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 ESR published as significant digits
getLatestESRDate
latest published ESR day as SOD unix timestamp
getESRForDate
takes UTC unix timestamp as input for any day and returns that day's ESR
getEarliestESRDate
earliest published ESR day available for query
TESR Forwards (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