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?
optionallogging: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?
optionalmodule:M
Defined in: src/Contract.ts:231
Contract module
Inherited from
moduleUrl?
optionalmoduleUrl:string
Defined in: src/Contract.ts:241
URL to contract module JS file
Inherited from
path?
optionalpath:string
Defined in: src/Contract.ts:237
Filesystem path to contract directory (auto-loads module + zkConfig)
Inherited from
privateStateId?
optionalprivateStateId: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?
optionalwitnesses:Record<string,unknown>
Defined in: src/Contract.ts:247
Witnesses for the contract
Inherited from
zkConfig?
optionalzkConfig:ZKConfigProvider<string>
Defined in: src/Contract.ts:233
ZK configuration provider for this contract
Inherited from
zkConfigBaseUrl?
optionalzkConfigBaseUrl:string
Defined in: src/Contract.ts:243
Base URL for ZK artifacts