Crates.io | transaction-builder-generator |
lib.rs | transaction-builder-generator |
version | 0.2.2 |
source | src |
created_at | 2022-05-24 19:53:44.043454 |
updated_at | 2022-07-22 21:05:40.593247 |
description | Aptos transaction-builder |
homepage | https://aptoslabs.com |
repository | https://github.com/aptos-labs/aptos-core |
max_upload_size | |
id | 593031 |
size | 54,088 |
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.
The following languages are currently supported: