web3dart icon indicating copy to clipboard operation
web3dart copied to clipboard

How to set a timeout for Web3Client?

Open rodrigoschaefer opened this issue 4 years ago • 1 comments

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?

rodrigoschaefer avatar Nov 16 '21 04:11 rodrigoschaefer

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

juampiq6 avatar Dec 08 '21 16:12 juampiq6