Skip to content

v0.1.5 — checkpointed ERC-20 transfer example

Latest

Choose a tag to compare

@gjwang gjwang released this 24 Oct 17:26
fa40d51

The SDK archive now includes examples/address-transfers-page.mjs: read one ERC-20 transfer page per invocation, keep the exact response and cursor in a checkpoint, and resume the same fixed query. A completed checkpoint makes no further request; partial coverage stays visible.

Install this release archive:

npm install https://github.com/blockvectra/data-api-js/releases/download/v0.1.5/blockvectra-data-api-0.1.5.tgz
node node_modules/@blockvectra/data-api/examples/address-transfers-page.mjs

Set BLOCKVECTRA_API_KEY, BLOCKVECTRA_CHAIN, BLOCKVECTRA_ADDRESS, BLOCKVECTRA_FROM_BLOCK, BLOCKVECTRA_TO_BLOCK and BLOCKVECTRA_STATE as described in the README before running the example. It supports a fixed window of at most 100,000 blocks and at most 20 saved pages. Pagination completion does not prove complete upstream indexing.

The runtime and TypeScript declarations are byte-identical to 0.1.4. Build, typecheck and an isolated archive-install probe pass; the probe uses mocked pages and is not a live Data API or customer test. SHA256SUMS is attached.

npm currently serves 0.1.4. This 0.1.5 GitHub archive is available through the URL above; npm publication and the existing registry-publication verifier remain pending normal publisher authentication.