Skip to main content

@midnight-ntwrk/midnight-js-contracts v0.2.5 • API


Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-contracts / createUnprovenCallTxFromInitialStates

Function: createUnprovenCallTxFromInitialStates()

createUnprovenCallTxFromInitialStates<PS, C, ICK>(initialZswapChainState, options): Promise<UnsubmittedCallTxData<PS, C, ICK>>

Calls a circuit using the provided initial states and creates an unbalanced, unproven, unsubmitted, call transaction.

Type parameters

PS

C extends Contract<PS, Witnesses<PS>>

ICK extends string

Parameters

initialZswapChainState: ZswapChainState

The contract's initial Zswap chain state.

options: CallOptions<PS, C, ICK>

Configuration.

Returns

Promise<UnsubmittedCallTxData<PS, C, ICK>>

A promise that contains all data produced by the circuit call and an unproven transaction assembled from the call result.