@aptos-labs/aptos-indexer-protos
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

Aptos Indexer Protos

This repository contains the protobuf definitions for the Aptos Indexer tech stack.

Usage

Import the generated code like this:

import { aptos } from "@aptos-labs/aptos-indexer-protos";

Then use it like this:

function parse(transaction: aptos.transaction.v1.Transaction) {
  console.log(transaction)
}

These configuration options are required for typechecking to work:

// tsconfig.json
{
  "compilerOptions": {
    "moduleResolution": "node",
  }
}

This package should work for both CommonJS ("type": "commonjs") and ES ("type": "module") modules.

Contributing

See CONTRIBUTING.md for more information.

/@aptos-labs/aptos-indexer-protos/

    Package Sidebar

    Install

    npm i @aptos-labs/aptos-indexer-protos

    Weekly Downloads

    1

    Version

    0.2.3

    License

    Apache-2.0

    Unpacked Size

    1.29 MB

    Total Files

    119

    Last publish

    Collaborators

    • aptos-labs