ProgrammableTransactionBuilder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun build(sui: Sui): ProgrammableTransaction

Asynchronously builds the final ProgrammableTransaction by orchestrating metadata gathering and input resolution.

Link copied to clipboard
inline fun <T> input(value: T): Argument

A generic input function that serializes a given value into bytes using BCS. If the value is an ObjectArg, it correctly routes to the object function.

fun input(bytes: ByteArray, forceSeparate: Boolean = false): Argument

Adds a pure byte array as an input.

Link copied to clipboard
inline fun <T : Any> ProgrammableTransactionBuilder.inputs(vararg inputs: T): List<Argument>

Extension functions to create Argument.Inputs from various types.

Link copied to clipboard

Creates a MakeMoveVec command.

Link copied to clipboard

Creates a MergeCoins command.

Link copied to clipboard

Creates a MoveCall command.

Link copied to clipboard

fun object(objectArg: ObjectArg): Argument

Adds a Sui object as an input. All object inputs are treated as unique inputs, but using the same key means they will overwrite each other.

Link copied to clipboard

Creates a Publish command.

Link copied to clipboard
inline fun <T> pure(value: T): Argument
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : TypeTag> ProgrammableTransactionBuilder.types(vararg types: T): List<TypeTag>
Link copied to clipboard

Creates a Upgrade command.