When calling the executeTransactionAsync method, part of web3.abi.datatypes.Function, I get an error saying the method can not be found.

If I remove the Async so the method is executeTransaction, I get an error that the Transaction needs to be sent through Async.

I am using Android Studio, Java, and the Web3j library.

Is there a way I could send this transaction with Realm or something else? Or maybe I am using Web3j wrong and I need to use it another way?

My code sending the transaction:

public TransactionReceipt approve() throws IOException, TransactionException {
    Function function = new Function("approve", Arrays.<Type>asList(), Collections.<TypeReference<?>>emptyList());
    return executeTransactionAsync (function);

Web3j API

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.