public class EthereumProxyRpc extends Object implements EthereumProxy
| Constructor and Description |
|---|
EthereumProxyRpc(Web3JFacade web3jFacade,
ChainId chainId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addressExists(EthAddress address) |
EthereumEventHandler |
events() |
EthValue |
getBalance(EthAddress address) |
SmartContractByteCode |
getCode(EthAddress address) |
BigInteger |
getNonce(EthAddress address) |
SmartContract |
mapFromAbi(ContractAbi abi,
EthAddress address,
EthAccount sender) |
<T> rx.Observable<T> |
observeEvents(ContractAbi abi,
EthAddress contractAddress,
String eventName,
Class<T> cls) |
CompletableFuture<EthAddress> |
publish(CompiledContract contract,
EthAccount sender,
Object... constructorArgs) |
CompletableFuture<EthAddress> |
sendTx(EthValue ethValue,
EthData data,
EthAccount sender) |
CompletableFuture<EthExecutionResult> |
sendTx(EthValue value,
EthData data,
EthAccount account,
EthAddress toAddress) |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasEnoughFundpublic EthereumProxyRpc(Web3JFacade web3jFacade, ChainId chainId)
public SmartContract mapFromAbi(ContractAbi abi, EthAddress address, EthAccount sender)
mapFromAbi in interface EthereumProxypublic CompletableFuture<EthAddress> publish(CompiledContract contract, EthAccount sender, Object... constructorArgs)
publish in interface EthereumProxypublic CompletableFuture<EthExecutionResult> sendTx(EthValue value, EthData data, EthAccount account, EthAddress toAddress)
sendTx in interface EthereumProxypublic BigInteger getNonce(EthAddress address)
getNonce in interface EthereumProxypublic SmartContractByteCode getCode(EthAddress address)
getCode in interface EthereumProxypublic <T> rx.Observable<T> observeEvents(ContractAbi abi, EthAddress contractAddress, String eventName, Class<T> cls)
observeEvents in interface EthereumProxypublic void shutdown()
shutdown in interface EthereumProxypublic CompletableFuture<EthAddress> sendTx(EthValue ethValue, EthData data, EthAccount sender)
sendTx in interface EthereumProxypublic EthereumEventHandler events()
events in interface EthereumProxypublic boolean addressExists(EthAddress address)
addressExists in interface EthereumProxypublic EthValue getBalance(EthAddress address)
getBalance in interface EthereumProxyCopyright © 2017. All rights reserved.