Skip to main content

ProgrammableTransaction

ProgrammableTransaction Objects

class ProgrammableTransaction(ProgrammableTransactionProtocol)

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)

commands

def commands() -> typing.List[Command]

The commands to be executed sequentially. A failure in any command will result in the failure of the entire transaction.

inputs

def inputs() -> typing.List[Input]

Input objects or primitive values