DeployOptions
Defined in: src/Contract.ts:258
Options for deploying a contract.
Since
0.2.0
Properties
initialPrivateState?
optionalinitialPrivateState:unknown
Defined in: src/Contract.ts:260
Initial private state (defaults to {})
onSubmit()?
optionalonSubmit: (info) =>void
Defined in: src/Contract.ts:265
Callback fired after the tx is submitted but before finalization. Receives the contract address and txId so the UI can show progress.
Parameters
info
address
string
txId
string
Returns
void
skipFinalization?
optionalskipFinalization:boolean
Defined in: src/Contract.ts:268
Skip waiting for tx finalization. Returns immediately after submission. The contract handle is fully functional — calls will work once the deploy tx lands on-chain.
timeout?
optionaltimeout:number
Defined in: src/Contract.ts:262
Timeout in milliseconds. Throws TxTimeoutError if deployment isn’t finalized in time.