simolus3 / web3dart

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

Error web3dart : client.pendingTransaction #182

Closed suduzx closed 2 years ago

suduzx commented 2 years ago

final test = web3.pendingTransactions(); test.listen((event) { print('${event}'); });

var rpcUrl = 'https://rinkeby.infura.io/v3/ff6a249a74e048f1b413cba715f98d07'; String wsUrl = 'wss://rinkeby.infura.io/ws/v3/ff6a249a74e048f1b413cba715f98d07'; late Web3Client web31 = new Web3Client(rpcUrl, Client(), socketConnector: () { return IOWebSocketChannel.connect(wsUrl).cast(); });

I get error Bad state: The client closed with pending request "eth_subscribe".