Nethereum.Uniswap-V2-and-V3
Nethereum.Uniswap-V2-and-V3 copied to clipboard
Setting GasLimit and GasPrice
Hi,
Thanks for the sample code. I'm trying to use it against PancakeFactory on the BSC network.
I'm new to sending transactions to the blockchain. How can I set the gasPrice and gasLimit (or gas) as high as possible for the call to SwapExactETHForTokensFunction()? I'd like to set the gasPrice to a multiple of what the estimate is, to try and get the swap mined as quickly as possible.
I'd appreciate any pointers in the right direction.
You need to estimate manually and provide a multipler then, see the http://playground.nethereum.com/csharp/id/1007 mainly estimate and add your multiplier