This repository contains the protobuf definitions for Aptos.
Import generated structs like this:
use aptos_protos::transaction::v1::Transaction;
Then use them like this:
fn parse(transaction: Transaction) {
// Parse the transaction.
}
See CONTRIBUTING.md for more information.