Skip to main content

createUnprovenCallTx

Midnight.js API Reference v2.0.2


Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / createUnprovenCallTx

Function: createUnprovenCallTx()

Calls a circuit using states fetched from the public data provider and private state provider, then creates an unbalanced, unproven, unsubmitted, call transaction.

Param​

The providers to use to create the call transaction.

Param​

Configuration.

Throws​

IncompleteCallTxPrivateStateConfig If a privateStateId was given but a privateStateProvider was not. We assume that when a user gives a privateStateId, they want to update the private state store.

Call Signature​

createUnprovenCallTx<C, ICK>(providers, options): Promise<UnsubmittedCallTxData<C, ICK>>

Type Parameters​

C​

C extends Contract<undefined, Witnesses<undefined>>

ICK​

ICK extends string

Parameters​

providers​

UnprovenCallTxProvidersBase

options​

CallOptionsWithArguments<C, ICK>

Returns​

Promise<UnsubmittedCallTxData<C, ICK>>

Call Signature​

createUnprovenCallTx<C, ICK>(providers, options): Promise<UnsubmittedCallTxData<C, ICK>>

Type Parameters​

C​

C extends Contract<any, Witnesses<any>>

ICK​

ICK extends string

Parameters​

providers​

UnprovenCallTxProvidersWithPrivateState<C>

options​

CallTxOptionsWithPrivateStateId<C, ICK>

Returns​

Promise<UnsubmittedCallTxData<C, ICK>>