UNPKG

ponder-client

Version:
25 lines 675 B
import { many, query as queryPonder, } from '../../index.js'; import schema from './schema.js'; const pagination = { after: undefined, before: undefined, }; const ponderApiEndpoint = 'https://scope-ponder-production.up.railway.app'; const query = { modules: many('Module')({ limit: 2, orderBy: 'block', orderDirection: 'desc', after: pagination.after, before: pagination.before, }, { txHash: true, address: true, }, { endCursor: true, hasNextPage: true, }), }; const data = await queryPonder(ponderApiEndpoint, query); console.log(data.modules); //# sourceMappingURL=index.js.map