0.0.0 • Published 1 year ago
@genql/zora v0.0.0
zora.co TypeScript API client
GraphQL client for zora.co with full TypeScript support
Installation
npm install @genql/zora
Docs
You can read more about usage in the client docs and Genql docs
Example usage
import { createClient } from '@genql/zora'
const client = createClient()
// query variables
let networks
let sort
let where
client
.query({
aggregateAttributes: {
__args: {
networks: networks,
sort: sort,
where: where,
},
traitType: true,
valueMetrics: {
count: true,
percent: true,
value: true,
},
},
})
.then((x) => console.log(JSON.stringify(x, null, 4)))
// query variables
let networks
let where
let networks1
let where1
let networks2
let where2
client
.query({
aggregateStat: {
floorPrice: {
__args: {
networks: networks,
where: where,
},
},
nftCount: {
__args: {
networks: networks1,
where: where1,
},
},
ownerCount: {
__args: {
networks: networks2,
where: where2,
},
},
},
})
.then((x) => console.log(JSON.stringify(x, null, 4)))
Sponsor
This project is sponsored by Notaku: Create public docs websites from your Notion pages
0.0.0
1 year ago