@shitty-scope-name/zora
v0.3.0
Published
SDK client for api.zora.co GraphQL API
Downloads
7
Maintainers
Readme
api.zora.co TypeScript API client
GraphQL client for api.zora.co with full TypeScript support
Installation
npm install @shitty-scope-name/zora
Docs
You can read more about usage in the client docs and Genql docs
Example usage
import { createClient } from '@shitty-scope-name/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: {
accumulativeSales: {
__args: {
networks: networks,
where: where,
},
count: true,
date: true,
},
floorPrice: {
__args: {
networks: networks1,
where: where1,
},
},
nftCount: {
__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