@dipdup/domains
v0.1.0
Published
GQL client for Tezos Domains API
Downloads
5
Readme
Tezos Domains GQL client
Autogenerated Tezos Domains fully typed SDK with a built-in GQL client.
Installation
npm i @dipdup/domains
Usage
First of all you need to create an instance of domains client:
import { createClient } from '@dipdup/domains'
const client = createClient({
url: 'http://domains.dipdup.net/v1/graphql',
subscription: {
url: "wss://domains.dipdup.net/v1/graphql"
}
});
Query
import { everything } from '@dipdup/domains'
client.chain.query
.record({
where: {
address: { _eq: 'KT1P8n2qzJjwMPbHJfi4o8xu6Pe3gaU3u2A3' }
}
})
.get({ ...everything })
.then(res => console.log)