Skip to main content

Interface: ProgrammableTransactionLike

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)

Methods

commands()

commands(): CommandLike[];

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

Returns

CommandLike[]


inputs()

inputs(): InputLike[];

Input objects or primitive values

Returns

InputLike[]