Skip to main content

createUnprovenCallTxFromInitialStates

Midnight.js API Reference v2.0.2


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

Function: createUnprovenCallTxFromInitialStates()

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

Param

Configuration.

Call Signature

createUnprovenCallTxFromInitialStates<C, ICK>(options, walletCoinPublicKey, walletEncryptionPublicKey): UnsubmittedCallTxData<C, ICK>

Type Parameters

C

C extends Contract<undefined, Witnesses<undefined>>

ICK

ICK extends string

Parameters

options

CallOptionsWithProviderDataDependencies<C, ICK>

walletCoinPublicKey

string

walletEncryptionPublicKey

string

Returns

UnsubmittedCallTxData<C, ICK>

Call Signature

createUnprovenCallTxFromInitialStates<C, ICK>(options, walletCoinPublicKey, walletEncryptionPublicKey): UnsubmittedCallTxData<C, ICK>

Type Parameters

C

C extends Contract<any, Witnesses<any>>

ICK

ICK extends string

Parameters

options

CallOptionsWithPrivateState<C, ICK>

walletCoinPublicKey

string

walletEncryptionPublicKey

string

Returns

UnsubmittedCallTxData<C, ICK>