
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
cardano-nftcdn-client
Advanced tools
Automatically generated Openapi-fetch (Axios) client for NFTCDN API — Cardano native tokens metadata/datums indexer/explorer and images CDN. IPFS gateway included.
To install the client with Yarn, run:
yarn add cardano-nftcdn-client
To install the client with NPM, run:
npm i cardano-nftcdn-client
import NftcdnClient from "cardano-nftcdn-client"
const client = NftcdnClient("https://graph.xray.app/output/services/nftcdn/mainnet/api/v1")
const app = async () => {
const metadata = await client.GET("/metadata/{fingerprint}", {
params: {
path: {
fingerprint: "asset1zwa4chw9xm7xwk7g46ef94qsj28hmnd7qffhgx",
},
},
})
if (metadata.data) {
console.log(tip.data)
}
if (metadata.error) {
console.error(tip.error)
}
}
app()
import NftcdnClient from "cardano-nftcdn-client"
const baseUrl = "https://graph.xray.app/output/services/nftcdn/mainnet/api/v1"
const headers = {} // rest headers
const client = NftcdnClient(baseUrl, headers)
const app = async () => {
const metadata = await client.GET("/metadata/{id}", {
params: {
path: {
id: "b6798a74fb7441ef5f7af1ff4ea6150bbb7aaeb0aca0113e558592f6584449414d4f4e44",
},
},
})
console.log(metadata.data)
}
app()
import NftcdnClient from "cardano-nftcdn-client"
const client = NftcdnClient("https://graph.xray.app/output/services/nftcdn/mainnet/api/v1")
const app = async () => {
const abortController = new AbortController()
setTimeout(() => {
abortController.abort() // cancel request
console.log('Aborted!')
}, 200)
const assets = await client.GET("/assets", {
signal: abortController.signal,
})
if (assets.data) {
console.log(tip.data?.[0]?.block_no)
}
if (assets.error) {
console.error(tip.error)
}
}
app()
Run schema update:
yarn schema
Managed by XRAY/Network (XRAY/Graph, Cloudflare WAF & Load Balancer)
https://graph.xray.app/output/services/nftcdn/mainnet/api/v1
https://graph.xray.app/output/services/nftcdn/preprod/api/v1
https://graph.xray.app/output/services/nftcdn/preview/api/v1
FAQs
TypeScript client for XRAY/Graph NFTCDN API
We found that cardano-nftcdn-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.