tx

type tx

Represents a transaction builder that can build a block containing this transacation on the blockchain.

Since

0.10.4

Constructors

Link copied to clipboard
constructor(ops: list<rell.test.op>)

Creates a new transaction builder containing a list of operations.

constructor(ops: rell.test.op...)

Creates a new transaction builder containing any number of operations.

constructor(ops: list<-mirror_struct<-operation>>)

Creates a new transaction builder containing a list of operation structures.

constructor(ops: mirror_struct<-operation>...)

Creates a new transaction builder containing any number of operation structures.

Functions

Link copied to clipboard
function copy(): rell.test.tx

copies this transaction builder.

Link copied to clipboard
function nop(): rell.test.tx

Adds a nop operation to this transaction builder.

function nop(x: integer): rell.test.tx
function nop(x: text): rell.test.tx

Adds a nop operation with a given nonce to this transaction builder.

Link copied to clipboard

Adds a list op operation structures to this transaction builder.

function op(ops: list<rell.test.op>): rell.test.tx
function op(ops: rell.test.op...): rell.test.tx

Adds a list op operations to this transaction builder.

Link copied to clipboard
function run()

Build a block that contains this transaction.

Link copied to clipboard

Try to build a block that contains this transaction and require it to fail.

function run_must_fail(expected_message: text): rell.test.failure

Try to build a block that contains this transaction and require it to fail with an expected message.

Link copied to clipboard
function sign(privkeys: byte_array...): rell.test.tx
function sign(privkeys: list<byte_array>): rell.test.tx

Sign this transaction with a number of private keys.

function sign(keypairs: list<rell.test.keypair>): rell.test.tx
function sign(keypairs: rell.test.keypair...): rell.test.tx

Sign this transaction with a number of keypairs.