Skip to content

How to set the price flexibly? #5

Description

@yunwow

On Web3 php_ send_ tokens_ For example, there is a variable "$factortomultipliygasestimate" in this project. When I trade the BSC chain, I am always troubled by the size of this value. The situation is as follows:

Example 1: if my BSC chain wallet has a BNB worth $25, I can only set it at 150000 - 200000. If it exceeds that, the transaction will fail. And get an error prompt "insufficient funds for gas * price + value"

Example 2: if my BSC chain wallet has a BNB worth $1000, I must set it above 250000, otherwise I will fail again. And get a new error prompt "replacement transaction underpriced"

How can I handle the correct setting of this "price" variable. Sincerely ask you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions