@aptos-labs/aptos-protos
v1.1.3
Published
Code generated from protobuf definitions for the Aptos tech stack
Downloads
427
Readme
Aptos Protos
This repository contains the protobuf definitions for the Aptos tech stack.
Usage
Import the generated code like this:
import { aptos } from "@aptos-labs/aptos-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.