Skip to main content

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 of this type is specified in bcs-schema.abnf.

Extends​

  • UniffiAbstractObject

Implements​

Constructors​

Constructor​

new ProgrammableTransaction(inputs, commands): ProgrammableTransaction;

Parameters​

inputs​

InputLike[]

commands​

CommandLike[]

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​

CommandLike[]

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​

InputLike[]

Implementation of​

ProgrammableTransactionLike.inputs


toBcs()​

toBcs(): ArrayBuffer;

Convert this type to BCS encoded bytes.

Returns​

ArrayBuffer

Implementation of​

ProgrammableTransactionLike.toBcs


toDebugString()​

toDebugString(): string;

Returns​

string


toDisplayString()​

toDisplayString(): string;

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

Returns​

string

Implementation of​

ProgrammableTransactionLike.toDisplayString


toJson()​

toJson(): string;

Convert this type to a JSON encoded string.

Returns​

string

Implementation of​

ProgrammableTransactionLike.toJson


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


fromBcs()​

static fromBcs(bcs): ProgrammableTransactionLike;

Create this type from BCS encoded bytes.

Parameters​

bcs​

ArrayBuffer

Returns​

ProgrammableTransactionLike


fromJson()​

static fromJson(json): ProgrammableTransactionLike;

Create this type from a JSON encoded string.

Parameters​

json​

string

Returns​

ProgrammableTransactionLike


instanceOf()​

static instanceOf(obj_): obj_ is ProgrammableTransaction;

Parameters​

obj_​

any

Returns​

obj_ is ProgrammableTransaction