Skip to main content

Midnight.js API Reference v1.0.0


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

Function: createCircuitCallTxInterface()

createCircuitCallTxInterface<C>(providers, contract, contractAddress, privateStateId): CircuitCallTxInterface<C>

Creates a circuit call transaction interface for a contract.

Type Parameters

C

C extends Contract<any, Witnesses<any>>

Parameters

providers

ContractProviders<C>

The providers to use to build transactions.

contract

C

The contract to use to execute circuits.

contractAddress

string

The ledger address of the contract.

privateStateId

The identifier of the state of the witnesses of the contract.

undefined | string

Returns

CircuitCallTxInterface<C>