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 of this type is specified in bcs-schema.abnf.
Constructors
| ProgrammableTransaction | constructor(inputs: List<Input>, commands: List<Command>) |
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| commands | open 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. |
| destroy | open override fun destroy() |
| equals | open operator override fun equals(other: Any?): Boolean |
| hashCode | open override fun hashCode(): Int |
| inputs | open override fun inputs(): List<Input> Input objects or primitive values |
| toBcs | open override fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | open override fun toDisplayString(): String Render this type as human-readable text. |
| toJson | open override fun toJson(): String Convert this type to a JSON encoded string. |
| toString | open override fun toString(): String |
Companion object functions
| Name | Summary |
|---|---|
| fromBcs | fun fromBcs(bcs: ByteArray): ProgrammableTransaction Create this type from BCS encoded bytes. |
| fromJson | fun fromJson(json: String): ProgrammableTransaction Create this type from a JSON encoded string. |