Class: ProgrammableTransaction
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)
Extends
UniffiAbstractObject
Implements
Constructors
Constructor
new ProgrammableTransaction(inputs, commands): ProgrammableTransaction;
Parameters
inputs
commands
Returns
ProgrammableTransaction
Overrides
UniffiAbstractObject.constructor
Properties
[destructorGuardSymbol]
readonly [destructorGuardSymbol]: UniffiGcObject;
[pointerLiteralSymbol]
readonly [pointerLiteralSymbol]: bigint;
[uniffiTypeNameSymbol]
readonly [uniffiTypeNameSymbol]: "ProgrammableTransaction" = "ProgrammableTransaction";
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
Implementation of
ProgrammableTransactionLike.commands
equals()
equals(other): boolean;
Parameters
other
ProgrammableTransaction
Returns
boolean
hashCode()
hashCode(): bigint;
Returns
bigint
inputs()
inputs(): InputLike[];
Input objects or primitive values
Returns
Implementation of
ProgrammableTransactionLike.inputs
toDebugString()
toDebugString(): string;
Returns
string
toString()
toString(): string;
Returns a string representation of an object.
Returns
string
uniffiDestroy()
uniffiDestroy(): void;
Explicitly tell Rust to destroy the native peer that backs this object.
Once this method has been called, any following method calls will throw an error.
Can be called more than once.
Returns
void
Overrides
UniffiAbstractObject.uniffiDestroy
uniffiUse()
uniffiUse<T>(block): T;
A convenience method to use this object, then destroy it after its use.
Type Parameters
T
T
Parameters
block
(obj) => T
Returns
T
Inherited from
UniffiAbstractObject.uniffiUse
instanceOf()
static instanceOf(obj_): obj_ is ProgrammableTransaction;
Parameters
obj_
any
Returns
obj_ is ProgrammableTransaction