Skip to main content

UnsubmittedDeployTxData

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.1.0


Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / UnsubmittedDeployTxData

Type Alias: UnsubmittedDeployTxData<C>

UnsubmittedDeployTxData<C> = UnsubmittedDeployTxDataBase<C> & object

Data for an unsubmitted deployment transaction.

Type Declaration​

private​

readonly private: UnsubmittedTxData & object

The data of this transaction that is only visible on the user device.

Type Declaration​

initialZswapState​

readonly initialZswapState: ZswapLocalState

The Zswap state produced as a result of running the contract constructor. Useful for when inputs or outputs are created in the contract constructor.

Type Parameters​

C​

C extends Contract.Any

Remarks​

Privacy-sensitive type. Extends UnsubmittedDeployTxDataBase and further embeds UnsubmittedTxData (carrying the UnprovenTransaction) plus the contract constructor's initialZswapState under the private field. When logging, serializing, or transmitting, read only the public field or destructure specific non-sensitive fields. Never spread or stringify the whole object.