Skip to content

Instantly share code, notes, and snippets.

@chris-chris
Created September 18, 2022 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-chris/d94b4e10a47049ca092e5df87df5cbb4 to your computer and use it in GitHub Desktop.
Save chris-chris/d94b4e10a47049ca092e5df87df5cbb4 to your computer and use it in GitHub Desktop.
NFTBank Javascript API example
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