nucypher / ATxM

Automatic Transaction Machine 🏧 🔁
https://pypi.org/project/atxm/
GNU Affero General Public License v3.0
3 stars 3 forks source link

Ingest 3rd party gas oracles for retry strategies #35

Open KPrasch opened 4 months ago

KPrasch commented 4 months ago

This is a replacement for PR https://github.com/nucypher/nucypher/pull/3412

The general idea of this issue, is to query 3rd party APIs (like etherscan, polygonscan, etc.) to improve the efficiency, robustness and success rate of transaction retry strategies.

This issue can be closed by a PR that integrates a configurable mechanism that works with popular gas/price oracles, documented usage examples ("cookbook" style), or by decision that such functionality is too domain-specific.

cygnusv commented 2 weeks ago

We have evidence that Infura is sometimes not providing correct max priority fee estimates (at least on Polygon Mainnet), which can affect TX finality; in particular, they often suggest fess below 30 gwei, which in theory is the minimum. Using gas price feeds together with our own validation rules can help.