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

fee rate: connection / fallback logic #8

Open
2 tasks
esengulov opened this issue Jun 6, 2019 · 0 comments
Open
2 tasks

fee rate: connection / fallback logic #8

esengulov opened this issue Jun 6, 2019 · 0 comments

Comments

@esengulov
Copy link
Member

This issue is a followup issue to horizontalsystems/unstoppable-wallet-ios#642

Transaction Fee Rates

  • the first request should be made to HS IPFS node. If that doesn't respond in 10 seconds then request from ipfs.io (the timeout for it should be 60 seconds)
  • of both of the above fail then use following fallbacks for each blockchain, as per fallback guidelines below.

Fee Fallback Guidelines:

Bitcoin: https://btc.horizontalsystems.xyz/apg/ .

The API documentation can be found here https://bcoin.io/api-docs/#estimatefee.
Priority parameters of this API (number of blocks ).

  • high priority: 1
  • medium: 6
  • econom: 15

Responses are different from those you get from IPFS, it is in Bitcoin/kb. So in order to convert it format sat/bytes it needs to be multiplied by 100,000,000 and divided by 1024.

Bitcoin Cash and Dash:
Since both of those blockchains are currently loaded with 5% of their capacity, let's not provide fallback for these blockchains.

Ethereum:
Use Infura as fallback

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

1 participant