Skip to content

CreateContractOptions

Defined in: src/Contract.ts:1367

Options for creating a standalone contract (without Client).

Accepts individual providers instead of requiring Client to assemble them. Use the same module-loading options as LoadContractOptions.

Since

0.6.0

Extends

Type Parameters

M

M extends ContractModule = ContractModule

The contract module type (for type inference)

Properties

logging?

optional logging: boolean

Defined in: src/Contract.ts:1379

Enable logging (default: true)


midnightProvider

midnightProvider: MidnightProvider

Defined in: src/Contract.ts:1371

Midnight provider for submitting transactions


module?

optional module: M

Defined in: src/Contract.ts:231

Contract module

Inherited from

LoadContractOptions.module


moduleUrl?

optional moduleUrl: string

Defined in: src/Contract.ts:241

URL to contract module JS file

Inherited from

LoadContractOptions.moduleUrl


path?

optional path: string

Defined in: src/Contract.ts:237

Filesystem path to contract directory (auto-loads module + zkConfig)

Inherited from

LoadContractOptions.path


privateStateId?

optional privateStateId: string

Defined in: src/Contract.ts:249

Override privateStateId (defaults to contract name)

Inherited from

LoadContractOptions.privateStateId


privateStateProvider

privateStateProvider: PrivateStateProvider

Defined in: src/Contract.ts:1375

Private state provider


proofServerUrl

proofServerUrl: string

Defined in: src/Contract.ts:1377

Proof server URL


publicDataProvider

publicDataProvider: PublicDataProvider

Defined in: src/Contract.ts:1373

Public data provider for querying state


walletProvider

walletProvider: WalletProvider

Defined in: src/Contract.ts:1369

Wallet provider for signing/balancing transactions


witnesses?

optional witnesses: Record<string, unknown>

Defined in: src/Contract.ts:247

Witnesses for the contract

Inherited from

LoadContractOptions.witnesses


zkConfig?

optional zkConfig: ZKConfigProvider<string>

Defined in: src/Contract.ts:233

ZK configuration provider for this contract

Inherited from

LoadContractOptions.zkConfig


zkConfigBaseUrl?

optional zkConfigBaseUrl: string

Defined in: src/Contract.ts:243

Base URL for ZK artifacts

Inherited from

LoadContractOptions.zkConfigBaseUrl