Skip to content
Discussion options

You must be logged in to vote

Hello,

To construct the transaction in rust, we have to build the payload of the transaction to construct the TransactionBuilder.
https://github.com/aptos-labs/aptos-core/blob/3ae4ec1c3ed23b9d78ebcd78c28cdede0768c967/sdk/src/transaction_builder.rs#L27

The definition of TransactionPayload can be find here - https://github.com/aptos-labs/aptos-core/blob/3ae4ec1c3ed23b9d78ebcd78c28cdede0768c967/types/src/transaction/mod.rs#L409

pub enum TransactionPayload {
    /// A transaction that executes code.
    Script(Script),
    /// Deprecated.
    ModuleBundle(DeprecatedPayload),
    /// A transaction that executes an existing entry function published on-chain.
    EntryFunction(EntryFunction),
  …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0x5ea000000
Comment options

Answer selected by heliuchuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust-sdk Questions related to the Rust SDK
2 participants