cast estimate –create

Estimate gas cost to deploy a smart contract

$ cast estimate --create --help
Usage: cast estimate --create [OPTIONS] <CODE> [SIG] [ARGS]...

          The bytecode of contract

          The signature of the constructor

          Constructor arguments

      --value <VALUE>
          Ether to send in the transaction
          Either specified in wei, or as a string with a unit type:
          Examples: 1ether, 10gwei, 0.01ether

  -h, --help
          Print help (see a summary with '-h')