0.1.0 • Published 2 years ago

@dipdup/quartz v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Ubisoft Quartz GQL client

npm version Made With License: MIT

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