Is the GasPrice option compatible with GasLimit?


I have set a fixed price like the demo code, however my tx are still used the estimate speed.

one on my transition, I am using GasLimit. This option is compatible with GasPrice?

        const tx = await contract['harvest'](strategy.address, { gasLimit: 3000000});

My wallet.


1 Like

Hi @Bolo,

The documentation suggests that you can use the new gasPrice (set a fixed gas price to use rather than speed) and gasLimit (limit on gas used by the transaction).

Hi @Bolo,

Just to confirm, gasLimit and gasPrice are completely independent.

The only restriction is that you cannot set gasPrice and speed together.