Skip to content

amberdata/amberdata-example-top-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amberdata-example-top-tokens

Build your own tokens ranking list for Ethereum using Amberdata.io! Example code uses token rankings endpoint

Check out the demo page!

Clone:

git clone [email protected]:amberdata/amberdata-example-top-tokens.git

1. Get API Key

Go to amberdata.io and click "Get started"

2. Build:

Building with Amberdata.io is as simple as a few axios request:

let config = {
        headers: {"x-api-key": "YOUR_API_KEY_HERE"}
    }

let getTopTokensMarketCap = () => axios.get(`https://web3api.io/api/v1/tokens/rankings?direction=descending&sortType=marketCap&timeInterval=d`, config)
let getTopTokensChangeInPrice = () => axios.get(`https://web3api.io/api/v1/tokens/rankings?direction=descending&sortType=changeInPrice&timeInterval=d`, config)
let getTopNFTs = () => axios.get(`https://web3api.io/api/v1/tokens/rankings?sortType=transactionVolume&type=erc721&timeInterval=d`, config)

See source here.

Resources

Licensing

This project is licensed under the Apache Licence 2.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •