ProgrammableTransactionBuilder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

Creates a transaction argument from a String, correctly identifying it as a 0x1::string::String.

Creates a transaction argument from a ULong, correctly identifying it as a u64.

Creates a transaction argument from an AccountAddress, correctly identifying it as an address.

fun <T> ProgrammableTransactionBuilder.arg(values: List<T>, elementType: TypeTag): Argument

A smart constructor for lists that is now fully type-safe. It automatically decides whether to use pure (for pure vectors) or makeMoveVec (for object vectors).

Link copied to clipboard
suspend fun build(sui: Sui): ProgrammableTransaction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> input(value: T): Argument
fun input(bytes: ByteArray, forceSeparate: Boolean = false): Argument
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
fun makeMoveVec(typeTag: TypeTag?, values: List<Argument>): Argument.Result
Link copied to clipboard
Link copied to clipboard
fun moveCall(target: String, typeArgs: List<TypeTag> = emptyList(), args: List<Argument> = emptyList()): Argument.Result
Link copied to clipboard
fun object(objectArg: ObjectArg): Argument
Link copied to clipboard
fun publish(bytes: List<List<Byte>>, dependencies: List<ObjectId>): Argument.Result
Link copied to clipboard
inline fun <T> pure(value: T): Argument
fun pure(bytes: ByteArray): Argument
Link copied to clipboard
Link copied to clipboard
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
fun upgrade(modules: List<List<Byte>>, dependencies: List<ObjectId>, packageId: ObjectId, upgradeTicket: Argument): Argument.Result