Skip to content

tellor-io/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tellor API / api.tellorscan.com

This API allows you to query Tellor for network data on Ethereum mainnet, goerli, polygon, polygon-mumbai, chiado, and arbitrum. The API is hosted at https://api.tellorscan.io

To use:

To use this API in projects without needing to run locally, all endpoints are able to be accessed at all times with updated data at https://api.tellorscan.com/

For more information on queryIds, check out our dataSpecs repository. To see which queryIds are available to be used already, check out our query catalog.

Here are some ways to query the API from your browser:

Note: Strings preceded by a ":" are variables, such as:
.../:netName/... - a placeholder for the network name (a string: mainnet, goerli, polygon, polygon-mumbai, arbitrum, chiado)
.../:address/... - a placeholder for the address (a hash)
.../:disputeID/... - a placeholder for the disputeID (an integer) .../:queryId/... - a placeholder for the queryId (a hash)

To test:

Requirements: Node.js version 14.x

  1. Clone the repository
  2. Create a .env file based on the example (update the nodeURL)
  3. Run:

To run tests:

npm install
npm test

To run locally:

npm install
node index

or with nodemon for reload on file changes.

nodemon index.js

To Update the API: push changes to the main branch on github.