aptos-sdk-builder

Crates.ioaptos-sdk-builder
lib.rsaptos-sdk-builder
version0.2.7
sourcesrc
created_at2022-08-13 09:03:37.666902
updated_at2022-08-16 07:45:32.927968
descriptionAptos transaction-builder
homepagehttps://aptoslabs.com
repositoryhttps://github.com/aptos-labs/aptos-core
max_upload_size
id644633
size189,144
(aptos-crates)

documentation

README


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
Commit count: 18889

cargo fmt