3 releases

0.2.7 Aug 16, 2022
0.2.6 Aug 13, 2022
0.2.2 Aug 13, 2022

#3 in #aptos

Download history 10/week @ 2023-10-28 8/week @ 2023-11-04 19/week @ 2023-11-11 30/week @ 2023-11-18 17/week @ 2023-11-25 8/week @ 2023-12-02 4/week @ 2023-12-09 7/week @ 2023-12-16 32/week @ 2023-12-23 5/week @ 2023-12-30 4/week @ 2024-01-06 6/week @ 2024-01-13 9/week @ 2024-01-20 15/week @ 2024-01-27 26/week @ 2024-02-03 19/week @ 2024-02-10

70 downloads per month
Used in 79 crates (via aptos-framework)

Apache-2.0

635KB
14K SLoC


id: aptos-sdk-builder title: Aptos SDK Builder custom_edit_url: https://github.com/aptos-labs/aptos-core/edit/main/language/aptos-sdk-builder/README.md

Aptos SDK Builder

A transaction builder is a helper function that converts its arguments into the payload of an Aptos transaction calling a particular Move script.

In Rust, the signature of such a function typically looks like this:

pub fn encode_peer_to_peer_with_metadata_script(
    token: TypeTag,
    payee: AccountAddress,
    amount: u64,
    metadata: Vec<u8>,
    metadata_signature: Vec<u8>,
) -> Script;

This crate provide a library to generate transaction builders in one programming language.

The tool will also generate and install type definitions for Aptos types such as TypeTag, AccountAddress, and Script.

In practice, hashing and signing Aptos transactions additionally requires a runtime library for Binary Canonical Serialization ("BCS"). Such a library will be installed together with the Aptos types.

Supported Languages

The following languages are currently supported:

  • Rust

Dependencies

~48–66MB
~1.5M SLoC