The IDeploymentParameters interface extends ITransactionParameters (omitting to) for deploying new contracts.
IDeploymentParameters
Overview
The IDeploymentParameters interface configures contract deployment transactions. It includes the contract bytecode, an optional constructor calldata, random bytes for uniqueness, and the required challenge solution.
The full source code is available on GitHub at ITransactionParameters.ts.
Import
import { IDeploymentParameters } from '@btc-vision/transaction';Interface
Signature
interface IDeploymentParameters extends Omit<ITransactionParameters, 'to'>{
readonly bytecode: Uint8Array;
readonly calldata?: Uint8Array;
readonly randomBytes?: Uint8Array;
readonly challenge: IChallengeSolution;
}Description
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| bytecode | Uint8Array | Yes | |
| calldata | Uint8Array | No | |
| randomBytes | Uint8Array | No | |
| challenge | IChallengeSolution | Yes |