Skip to main content

createCallTxOptions

Midnight.js API Reference v2.0.2


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

Function: createCallTxOptions()

createCallTxOptions<C, ICK>(contract, circuitId, contractAddress, privateStateId, args): CallTxOptions<C, ICK>

Creates a CallTxOptions object from various data.

Type Parameters​

C​

C extends Contract<any, Witnesses<any>>

ICK​

ICK extends string

Parameters​

contract​

C

circuitId​

ICK

contractAddress​

string

privateStateId​

undefined | string

args​

CircuitParameters<C, ICK>

Returns​

CallTxOptions<C, ICK>