Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void initWeb3j() {
- final String url = rinkebyUrl;
- Thread t = new Thread(new Runnable() {
- @Override
- public void run() {
- HttpService infuraHttpService;
- String result = "Success initializing web3j/infura";
- try {
- infuraHttpService = new HttpService(url);
- web3j = Web3j.build(new HttpService(url));
- } catch (Exception wtf) {
- String exception = wtf.toString();
- Log.d("wat", "Error initializing web3j/infura. Error: " + exception);
- }
- // Use callback function e.g. publishResult(result)
- //return result;
- }
- });
- t.start();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement