Autogenerated typed SDK for Ubisoft Quartz NFTs with a built-in GQL client.
npm i @dipdup/quartz
First of all you need to create an instance of Quartz metadata client:
import { createClient } from '@dipdup/quartz'
const client = createClient({
url: 'http://quartz.dipdup.net/v1/graphql',
subscription: {
url: "wss://quartz.dipdup.net/v1/graphql"
}
});
import { everything } from '@dipdup/quartz'
client.chain.query
.token_metadata({
where: {
token_id: { _eq: "101252" }
}
})
.get({ ...everything })
.then(res => console.log)
Make sure you have bumped and comitted the package version.
npm i
npm run build
npm publish --access public