Created
September 18, 2022 06:43
NFTBank Javascript API example
This file contains hidden or 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