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

Return estimated message fee via API #714

Open
tboeckmann opened this issue Apr 4, 2021 · 1 comment
Open

Return estimated message fee via API #714

tboeckmann opened this issue Apr 4, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tboeckmann
Copy link
Member

tboeckmann commented Apr 4, 2021

Is your feature request related to a problem? Please describe.
In order to show users the estimated fee to send a message, we need an endpoint that returns the current estimated fees in the context of a protocol, network, and envelope type.

It should take into account the cost of the on-chain data and sending the transaction with medium priority.

Describe the solution you'd like
GET /messages/fee?protocol=ethereum&network=ropsten&envelope_type=0x01 returns:

{
  "fee": "167248000000000",
  "unit": "wei"
}

Ethereum
See tools here
Etherscan may be the best place to get data from as this is already used for the tx index and is considered widely accurate.

Edgeware
E.g. see substrate fees here

Other considerations
Envelope has an impact? It might be handled differently than as a param- I'm open to suggestions.

@tboeckmann tboeckmann added the enhancement New feature or request label Apr 4, 2021
@sa3664
Copy link
Contributor

sa3664 commented Apr 4, 2021

@tboeckmann Could you please assign this issue to me .

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

No branches or pull requests

2 participants