Skip to main content

ProgrammableTransaction

open class ProgrammableTransaction : Disposable, AutoCloseable, ProgrammableTransactionInterface

A user transaction

Contains a series of native commands and move calls where the results of one command can be used in future commands.

BCS

The BCS serialized form for this type is defined by the following ABNF:

ptb = (vector input) (vector command)

Constructors

ProgrammableTransactionconstructor(inputs: List<Input>, commands: List<Command>)

Functions

NameSummary
close@Synchronized
open override fun close()
commandsopen override fun commands(): List<Command>
The commands to be executed sequentially. A failure in any command will result in the failure of the entire transaction.
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
hashCodeopen override fun hashCode(): Int
inputsopen override fun inputs(): List<Input>
Input objects or primitive values
toStringopen override fun toString(): String