Skip to content

Setting GasLimit and GasPrice #2

@tobriain

Description

@tobriain

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions