@dipdup/quartz
v0.1.0
Published
GQL client for Ubisoft Quartz metadata API
Downloads
3
Readme
Ubisoft Quartz GQL client
Autogenerated typed SDK for Ubisoft Quartz NFTs with a built-in GQL client.
Installation
npm i @dipdup/quartz
Usage
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"
}
});
Query
import { everything } from '@dipdup/quartz'
client.chain.query
.token_metadata({
where: {
token_id: { _eq: "101252" }
}
})
.get({ ...everything })
.then(res => console.log)
Release
Make sure you have bumped and comitted the package version.
npm i
npm run build
npm publish --access public