simolus3 / web3dart

Ethereum library, written in Dart.
MIT License
441 stars 270 forks source link

How to set a timeout for Web3Client? #218

Open rodrigoschaefer opened 2 years ago

rodrigoschaefer commented 2 years ago

Client httpClient = Client(); Web3Client ethClient = Web3Client(rpcUrl, httpClient);

If i turn Ganache off, ethClient.call takes a huge ammount of time to return. Is there a way to set a timeout?

juampiq6 commented 2 years ago

try https://pub.dev/packages/http_retry it has a timeout parameter