tradingstrategy-ai / web3-ethereum-defi

A Python library for trading automation on DeFi, data research and integration. Supporting Uniswap, Aave, Chainlink, USDC and other protocols.
https://tradingstrategy.ai
MIT License
591 stars 127 forks source link

Retry nonce too low errors #153

Closed miohtama closed 11 months ago

miohtama commented 11 months ago

The nonce too low error is:

ValueError: {'code': -32000, 'message': 'nonce too low'}.

This might happen when we are broadcasting multiple transactions through multiple RPC providers using eth_sendRawTransaction. One provide is not yet seeing a transaction broadcast through the other provider.