0

I have the abi and bytecode of contract functions.

Is there a way to access them using api calls only(using web3 module or any other) since i want to integrate them in an android native app and thus can't use web3 plugin for front end javascript.

2 Answers 2

0

Please check How to send transaction/call function from server-side?. I have put my node.js code in there for connecting from server. It is working fine for me.It may help you as well.

3
  • I am able to execute view functions using the snippet. But can't access any create function
    – giorno
    Sep 10, 2018 at 20:48
  • Can you please share your code and the error you are getting.
    – SSS
    Sep 11, 2018 at 13:23
  • nevermind it worked fine .. thanks for helping out
    – giorno
    Sep 11, 2018 at 13:41
0

I think you can use web3j for Android because it’s java library

1
  • no i want to do it using apis only since i would be using them for web portal too.
    – giorno
    Sep 10, 2018 at 19:39

Your Answer

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

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