Code generated from protobuf definitions for the Aptos tech stack
npm install @aptos-labs/aptos-protosThis repository contains the protobuf definitions for the Aptos tech stack.
typescript
import { aptos } from "@aptos-labs/aptos-protos";
`Then use it like this:
`typescript
function parse(transaction: aptos.transaction.v1.Transaction) {
console.log(transaction)
}
`These configuration options are required for typechecking to work:
`json
// tsconfig.json
{
"compilerOptions": {
"moduleResolution": "node",
}
}
`This package should work for both CommonJS (
"type": "commonjs") and ES ("type": "module"`) modules.