Skip to content

DeployOptions

Defined in: src/Contract.ts:258

Options for deploying a contract.

Since

0.2.0

Properties

initialPrivateState?

optional initialPrivateState: unknown

Defined in: src/Contract.ts:260

Initial private state (defaults to {})


onSubmit()?

optional onSubmit: (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?

optional skipFinalization: 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?

optional timeout: number

Defined in: src/Contract.ts:262

Timeout in milliseconds. Throws TxTimeoutError if deployment isn’t finalized in time.