Skip to main content

createUnprovenCallTx

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.0.4


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.

Param​

Optional scoped transaction context to participate in an existing transaction scope.

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, PCK>(providers, options, transactionContext?): Promise<UnsubmittedCallTxData<C, PCK>>

Type Parameters​

C​

C extends Contract<undefined, Witnesses<undefined>>

PCK​

PCK extends string

Parameters​

providers​

UnprovenCallTxProvidersBase

options​

CallOptionsWithArguments<C, PCK>

transactionContext?​

TransactionContext<C, PCK>

Returns​

Promise<UnsubmittedCallTxData<C, PCK>>

Call Signature​

createUnprovenCallTx<C, PCK>(providers, options, transactionContext?): Promise<UnsubmittedCallTxData<C, PCK>>

Type Parameters​

C​

C extends Any

PCK​

PCK extends string

Parameters​

providers​

UnprovenCallTxProvidersWithPrivateState<C>

options​

CallTxOptionsWithPrivateStateId<C, PCK>

transactionContext?​

TransactionContext<C, PCK>

Returns​

Promise<UnsubmittedCallTxData<C, PCK>>