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 / createCallTxOptions

Function: createCallTxOptions()

createCallTxOptions<PSS, PSK, C, ICK>(contract, circuitId, contractAddress, privateStateKey, args): CallTxOptions<PSS, PSK, C, ICK>

Creates a CallTxOptions object from various data.

Type parameters

PSS extends PrivateStateSchema

PSK extends string

C extends Contract<PSS[PSK], Witnesses<PSS[PSK]>>

ICK extends string

Parameters

contract: C

circuitId: ICK

contractAddress: string

privateStateKey: PSK

args: CircuitParameters<C, ICK>

Returns

CallTxOptions<PSS, PSK, C, ICK>