@graphprotocol/client-block-tracking
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

Automatic Block Tracking

graph-client implements automatic block tracking using number_gte filter of graph-node. This automates the process of fetching and tracking the block number of entites.

This feature is implemented in @graphprotocol/client-block-tracking and installed automatically with the graph-client CLI package.

Usage Example

# .graphclientrc.yml
sources:
  - name: uniswap
    handler:
      graphql:
        endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2
    transforms: # The following section will make sure to automatically fetch the block information, and then use it for tracking in future queries.
      - blockTracking:
          validateSchema: true # Validates that the schema source actually contains _meta and input block filters.

Readme

Keywords

Package Sidebar

Install

npm i @graphprotocol/client-block-tracking

Weekly Downloads

3,997

Version

2.0.6

License

MIT

Unpacked Size

33 kB

Total Files

19

Last publish

Collaborators

  • nasmr
  • neysofu
  • a3k5
  • fordn
  • lutter
  • tmigone
  • juanmardefago
  • dnfodjo
  • theodus
  • cmwhited
  • benface
  • migueldeelias
  • andras_en
  • pcarranzav_edgeandnode
  • mitchhs12
  • dwerner-en
  • lnsd
  • edge-and-node
  • nomativ
  • yaroshkvorets
  • pdiogo-tgf
  • bairun