ProgrammableTransaction

@Serializable
data class ProgrammableTransaction(val inputs: List<@Serializable(with = AnySerializer::class) Any>, val commands: List<@Serializable(with = AnySerializer::class) Any>) : TransactionKind

Constructors

Link copied to clipboard
constructor(inputs: List<@Serializable(with = AnySerializer::class) Any>, commands: List<@Serializable(with = AnySerializer::class) Any>)

Properties

Link copied to clipboard
val commands: List<@Serializable(with = AnySerializer::class) Any>
Link copied to clipboard
val inputs: List<@Serializable(with = AnySerializer::class) Any>

Functions

Link copied to clipboard
infix suspend fun ProgrammableTransaction.compose(details: Pair<Account, ULong>): String

Composes a ProgrammableTransaction into the final transaction bytes string. This is the infix version for a more expressive syntax.

suspend fun ProgrammableTransaction.compose(details: Pair<Account, ULong>, sui: Sui = SuiKit.client): String

Composes a ProgrammableTransaction into the final transaction bytes string. This is the standard extension function.