Skip to main content

createZswapOutput

@midnight-ntwrk/compact-runtime v0.9.0


@midnight-ntwrk/compact-runtime / createZswapOutput

Function: createZswapOutput()

function createZswapOutput(
circuitContext,
coinInfo,
recipient): void;

Adds a coin to the list of outputs produced by the circuit.

Parameters​

circuitContext​

CircuitContext<unknown>

The current circuit context.

coinInfo​

EncodedCoinInfo

The coin to produce.

recipient​

EncodedRecipient

The coin recipient - either a coin public key representing an end user or a contract address representing a contract.

Returns​

void