@midnight-ntwrk/midnight-js-contracts v0.1.15 • API
Midnight.js API Reference v0.1.15 / @midnight-ntwrk/midnight-js-contracts / withZSwapState
Function: withZSwapState()
withZSwapState<
PS
>(privateState
):StateWithZswap
<PS
>
Creates a state valid for a user witness set merged with the ZSwapWitnesses using the withZswapWitnesses function. In other words, a state valid for WitnessesWithZswap.
Type parameters
• PS
Parameters
• privateState: PS
The value of the private state to use for the user portion of the resulting state.
Returns
StateWithZswap
<PS
>