I am developing an app on Android, but Web3j does not support events on infura ( Should I use Infura with Web3j for Event filter? ) .
What are the options, I did not find any alternative library?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
I dont know if this will work on Android, but try something like this:
WebSocketService webSocketService = new WebSocketService("wss://kovan.infura.io/ws/v3/.....'", true); webSocketService.connect(); Web3j web3j = Web3j.build(webSocketService);
That worked for this generated method (with java 11):
public Flowable<TransferEventResponse> transferEventFlowable(DefaultBlockParameter startBlock, DefaultBlockParameter endBlock)