Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting GasLimit and GasPrice #2

Open
tobriain opened this issue May 13, 2021 · 1 comment
Open

Setting GasLimit and GasPrice #2

tobriain opened this issue May 13, 2021 · 1 comment

Comments

@tobriain
Copy link

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.

@juanfranblanco
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants