1

I deployed a smart contract into my private network using truffle framework. After deployed the contract I implemented a client interface using android from android I want to call the methods of deployed contract. is it possible to call the smart contract methods using truffle? or it is possible with web3j only? with web3j can I again deploy the smart contract with solc? anybody, please give me a clarity

1 Answer 1

1

I think the information found in this thread could be helpful to you.

My response was :

Geth can be run both on Android as well as iOS. The nightly builds of the develop branch always include the Android .aar archives that you can link against an Android Studio project and the iOS framework that you can use in XCode.

Since Geth does not yet feature the light client functionality (that one actually needs Ethereum global P2P protocol updates), it's quite heavyweight, but it will be the official way to run mobile DApps, and AFAIK only Geth has even a remote concept about light client support.

More info can be found at this question.

Another response that I think directly answers your question found in that thread is:

You should look into web3j over at https://web3j.io/ They have a Java library that interacts with the Ethereum blockchain similar to the JavaScript web3.js library. It has an Android version as well as a vanilla Java version.

1
  • I created a wrapper class for the deployed contract using web3j commands. so how to use smart contract methods in my android app?
    – vijju
    May 31, 2018 at 5:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.