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.