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

Create tx price estimation function #1948

Open
nikita-fuchs opened this issue Feb 22, 2024 · 2 comments
Open

Create tx price estimation function #1948

nikita-fuchs opened this issue Feb 22, 2024 · 2 comments
Labels

Comments

@nikita-fuchs
Copy link
Contributor

As we are in the lucky situation to be a very popular network right now, it needs to be made sure that people have a way to outbid other transactions with a higher transaction price to be properly prioritised by miners, just like it works on Ethereum and Bitcoin.

The most suitable place for this feature is the SDK. Some inspiration can be taken here: https://etherscan.io/gastracker
The firm way is to draw correlations like corr(when the tx was seen first, when it was mined, what gas it had), but for now it would be enough to just propose the average for the last microblock and add some percentage of markup.

@nikita-fuchs
Copy link
Contributor Author

Ah damn, closing in favour of #1786

@davidyuk
Copy link
Member

How I would do that:

Using the new node's endpoint, wallet/aepp would be able to ask user to pick an estimate mining time, showing the approximate tx price. It needs to provide selected gasPrice to sdk.

I'm stuck on how to estimate the transaction price in #1328

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

No branches or pull requests

2 participants