protofire / eth-cli

CLI swiss army knife for Ethereum developers
https://www.npmjs.com/package/eth-cli
MIT License
239 stars 40 forks source link

Gwei #149

Closed noirorionx closed 3 years ago

noirorionx commented 3 years ago

Is there any possible way to adjust the Gwei and amount of gas we use for a tx?

Thank you for your amazing work!

fvictorio commented 3 years ago

These are currently supported:

$ eth tx:send --help
...
  --gas=gas                                  The gas limit of the transaction. Will be estimated if not
                                             specified.

  --gasPrice=gasPrice                        The gas price of the transaction, in wei. Defaults to 1 gwei.
...

Does that work for you?

noirorionx commented 3 years ago

Thank you very much! that was exactly what I was looking for!! Love your tool, thank you so much!

noirorionx commented 3 years ago

tried to use it with "contract:send" and returns following error: "Error: Unexpected argument: --gasPrice=70000000000" Also tried with --gas command and same error return.

Maybe this parameters can't be use on "contract:send"?

Thank you!