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

Function: createCircuitMaintenanceTxInterface()

createCircuitMaintenanceTxInterface<PSS, PSK, C, ICK>(providers, circuitId, privateStateKey, contractAddress): CircuitMaintenanceTxInterface

Creates a CircuitMaintenanceTxInterface.

Type parameters

PSS extends PrivateStateSchema

PSK extends string

C extends Contract<any, Witnesses<any>>

ICK extends string

Parameters

providers: MidnightProviders<ImpureCircuitId<C>, PrivateStateSchema>

The providers to use to create and submit transactions.

circuitId: ICK

The circuit ID the interface is for.

privateStateKey: PSK

The private state key for the contract.

contractAddress: string

The address of the deployed contract for which this interface is being created.

Returns

CircuitMaintenanceTxInterface