Skip to main content

@midnight-ntwrk/compact-runtime v0.7.0Readme | API


@midnight-ntwrk/compact-runtime v0.7.0 / createZswapOutput

Function: createZswapOutput()

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