Package org.aion4j.avm.helper.remote
Class RemoteAVMNode
- java.lang.Object
-
- org.aion4j.avm.helper.remote.RemoteAVMNode
-
public class RemoteAVMNode extends Object
-
-
Constructor Summary
Constructors Constructor Description RemoteAVMNode(String web3RpcUrl, Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcall(String contract, String address, String callData, BigInteger value, long gas, long gasPrice)StringcreateAccount(String password)Stringdeploy(String address, String dappJarContent, long gas, long gasPrice)StringgetBalance(String address)StringgetLatestBlock()StringgetLogs(String fromBlock, String toBlock, String addresses, String topics, String blockHash)org.json.JSONObjectgetReceipt(String txHash)StringgetTransactionCount(String address)Get transaction count.StringsendRawTransaction(String destination, String privateKey, String callData, BigInteger value, long gas, long gasPrice)StringsendTransaction(String contract, String address, String callData, BigInteger value, long gas, long gasPrice)Stringtransfer(String from, String to, BigInteger value, long gas, long gasPrice)booleanunlock(String address, String password)
-
-
-
Method Detail
-
call
public String call(String contract, String address, String callData, BigInteger value, long gas, long gasPrice)
-
sendTransaction
public String sendTransaction(String contract, String address, String callData, BigInteger value, long gas, long gasPrice)
-
sendRawTransaction
public String sendRawTransaction(String destination, String privateKey, String callData, BigInteger value, long gas, long gasPrice)
-
getTransactionCount
public String getTransactionCount(String address)
Get transaction count. Needed to get nonce of an address- Parameters:
address-- Returns:
-
transfer
public String transfer(String from, String to, BigInteger value, long gas, long gasPrice)
-
getReceipt
public org.json.JSONObject getReceipt(String txHash)
-
getLogs
public String getLogs(String fromBlock, String toBlock, String addresses, String topics, String blockHash)
-
getLatestBlock
public String getLatestBlock()
-
-