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

Function: createContractMaintenanceTxInterface()

createContractMaintenanceTxInterface<PSS, PSK>(providers, privateStateKey, contractAddress): ContractMaintenanceTxInterface

Creates a ContractMaintenanceTxInterface.

Type parameters

PSS extends PrivateStateSchema

PSK extends string

Parameters

providers: MidnightProviders<string, PrivateStateSchema>

The providers to use to build transactions.

privateStateKey: PSK

The private state key for the contract.

contractAddress: string

The ledger address of the contract.

Returns

ContractMaintenanceTxInterface