Skip to main content

ProgrammableTransactionInterface

type 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:

```text ptb = (vector input) (vector command) ```

type ProgrammableTransactionInterface interface {
// The commands to be executed sequentially. A failure in any command will
// result in the failure of the entire transaction.
Commands() []*Command
// Input objects or primitive values
Inputs() []*Input
}