Using NPM packages

Apibara indexers are powered by the Deno Javascript runtime, this makes them incredibly fast and self-contained.

Indexers dependencies are loaded from external CDNs like:

You can read more about managing dependencies on the official Deno documentation.

Examples

The following script loads common utilities from Starknet.js and Viem.

indexer.ts
import { hash, uint256 } from "https://esm.run/starknet@5.14";
import { formatUnits } from "https://esm.run/viem@1.4";
Last modified
Edit on GitHub
Apibara

Apibara is the fastest platform to build production-grade indexers that connect onchain data to web2 services.

© 2024 GNC Labs Limited. All rights reserved.