Class DeployTransaction

Hierarchy

  • TransactionContext
    • DeployTransaction

Constructors

Properties

args: any[]
events: undefined | EventEmitter<DeployEvents, any>
factory: ContractFactory
gasMultiple?: number
overrides: CallOverrides
provider: Provider
signer: Signer
storage: ThirdwebStorage<IpfsUploadBatchOptions>

Accessors

Methods

  • Estimate the total gas cost of this transaction (in both ether and wei)

    Returns Promise<{
        ether: string;
        wei: BigNumber;
    }>

  • Get gas overrides for the transaction

    Returns Promise<{
        gasPrice?: undefined;
        maxFeePerGas?: undefined;
        maxPriorityFeePerGas?: undefined;
    } | {
        gasPrice?: undefined;
        maxFeePerGas: BigNumber;
        maxPriorityFeePerGas: BigNumber;
    } | {
        gasPrice: BigNumber;
        maxFeePerGas?: undefined;
        maxPriorityFeePerGas?: undefined;
    }>

  • Set a multiple to multiply the gas limit by

    Parameters

    • factor: number

    Returns void

    Example

    // Set the gas limit multiple to 1.2 (increase by 20%)
    tx.setGasLimitMultiple(1.2)
  • Parameters

    • maxPriorityFeePerGas: undefined | BigNumberish | Promise<BigNumberish>

    Returns TransactionContext

Generated using TypeDoc