Docs Icon CaretRight Reference Icon CaretRight Mutations

Mutations

dryRun

A mutation that spins up a new temporary node from the current state and emulates a given transaction. It returns a [Receipt!]! for the emulated transaction. You can optionally use UTXO validation.

dryRun args

tx: HexString!

The transaction hex string.

utxoValidation: Boolean: Whether or not to use UTXO validation.

produceBlocks

A mutation that produces blocks, that can be used for testing that requires block advancement. Returns a U32! .

produceBlocks args

startTimestamp: Tai64Timestamp!

The start time of the produced block.

blocksToProduce: U64!

The number of blocks to produce.

submit

A mutation that submits transaction to the transaction pool and returns a Transaction! .

submit args

tx: HexString!

The transaction hex string.