FUNCTION

tx.op

function op(ops: list<op>): tx

Add a list of test operation calls to this test transaction builder.

Parameters

  • ops — the list of operations to add

Since

0.10.4


function op(ops: op...): tx

Add test operation calls to this test transaction builder.

Parameters

  • ops — the operations to add

Since

0.10.4


function op(ops: list<-mirror_struct<-operation>>): tx

Add a list of test operation calls to this test transaction builder.

The test operation calls are given as struct<operation> values.

For example, calls to the operation:

operation my_op(foo: integer, bar: list<text>) { ... }

may be passed as a struct<my_op>:

my_transaction_builder.op([
    struct<my_op>(foo = 1, bar = ["a", "b"]),
    struct<my_op>(foo = 2, bar = ["c", "d"])
]);

Parameters

  • ops — the list of test operation calls to add to this transaction builder

Since

0.10.4


function op(ops: mirror_struct<-operation>...): tx

Add the given test operation calls to this test transaction builder.

The test operation calls are given as struct<operation> values.

For example, calls to the operation:

operation my_op(foo: integer, bar: list<text>) { ... }

may be passed as a struct<my_op>:

my_transaction_builder.op(
    struct<my_op>(foo = 1, bar = ["a", "b"]),
    struct<my_op>(foo = 2, bar = ["c", "d"])
);

Parameters

  • ops — the test operation calls to add to this transaction builder

Since

0.10.4

© 2026 Chromia