0.0.0 • Published 1 year ago

@genql/tezos-domains v0.0.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

tezos.domains TypeScript API client

GraphQL client for tezos.domains with full TypeScript support

Installation

npm install @genql/tezos-domains

Docs

You can read more about usage in the client docs and Genql docs

Example usage

import { createClient } from '@genql/tezos-domains'
const client = createClient()


// query variables
let atBlock
let domainName = ''
let startedAtLevel = 3

client
  .query({
    auction: {
      __args: {
        atBlock: atBlock,
        domainName: domainName,
        startedAtLevel: startedAtLevel,
      },
      bidAmountSum: true,
      bidCount: true,
      bids: {
        amount: true,
        bidder: true,
      },
    },
  })
  .then((x) => console.log(JSON.stringify(x, null, 4)))



// query variables
let after = ''
let atBlock

client
  .query({
    auctions: {
      __args: {
        after: after,
        atBlock: atBlock,
      },
      edges: {
        cursor: true,
      },
      items: {
        bidAmountSum: true,
        bidCount: true,
      },
      pageInfo: {
        endCursor: true,
        hasNextPage: true,
        hasPreviousPage: true,
      },
    },
  })
  .then((x) => console.log(JSON.stringify(x, null, 4)))

Sponsor

This project is sponsored by Notaku: Create public docs websites from your Notion pages

Notaku