Is there a way to implement GSN in web3j for Android?

Is there a way to implement GSN in web3j for Android? Asked on Telegram by Ale: https://t.me/zeppelinos/9963

Something like new Web3j.build("ropsten_url", {gsn: true})

1 Like

I’m not familiar with the web3j stack, so I won’t be able to provide a detailed answer. To use the GSN, you’d need to query RelayHub events for registered relayers, choose one of them based on some criteria, craft a relay request and send it over.

This is basically what OpenZeppelin GSN Provider does, though our implementation is tied to the JavaScript web3 library.

1 Like