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

Function: createCircuitCallTxInterface()

createCircuitCallTxInterface<PSS, PSK, C>(providers, contract, contractAddress, privateStateKey): CircuitCallTxInterface<PSS[PSK], C>

Creates a circuit call transaction interface for a contract.

Type parameters

PSS extends PrivateStateSchema

PSK extends string

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

Parameters

providers: MidnightProviders<ImpureCircuitId<C>, PSS>

The providers to use to build transactions.

contract: C

The contract to use to execute circuits.

contractAddress: string

The ledger address of the contract.

privateStateKey: PSK

The address of the state of the witnesses of the contract.

Returns

CircuitCallTxInterface<PSS[PSK], C>