Created
September 18, 2022 06:43
-
-
Save chris-chris/d94b4e10a47049ca092e5df87df5cbb4 to your computer and use it in GitHub Desktop.
NFTBank Javascript API example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios").default; | |
const hostUrl = "https://api.nftbank.ai"; | |
const assetContract = "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e"; | |
const tokenId = "2795"; | |
const url = `${hostUrl}/v3/realtime-estimated-price/ethereum/${assetContract}/${tokenId}`; | |
const headers = { | |
"x-api-key": "<YOUR API KEY>", | |
}; | |
axios.get(url, { headers: headers }).then(function (response) { | |
console.log(response.data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment