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

Function: createCircuitMaintenanceTxInterfaces()

createCircuitMaintenanceTxInterfaces<PSS, PSK, C>(providers, contract, privateStateKey, contractAddress): CircuitMaintenanceTxInterfaces<C>

Creates a CircuitMaintenanceTxInterfaces.

Type parameters

PSS extends PrivateStateSchema

PSK extends string

C extends Contract<any, Witnesses<any>>

Parameters

providers: MidnightProviders<ImpureCircuitId<C>, PrivateStateSchema>

The providers to use to build transactions.

contract: C

The contract to use to execute circuits.

privateStateKey: PSK

The private state key for the contract.

contractAddress: string

The ledger address of the contract.

Returns

CircuitMaintenanceTxInterfaces<C>