public class EthereumFacade extends Object
| Constructor and Description |
|---|
EthereumFacade(BlockchainProxy blockchainProxy) |
| Modifier and Type | Method and Description |
|---|---|
EthereumFacade |
addInputHandlers(List<InputTypeConverter<?>> handlers) |
EthereumFacade |
addOutputHandlers(List<OutputTypeConverter> handlers) |
boolean |
addressExists(EthAddress address) |
<T> T |
createContractProxy(ContractAbi abi,
EthAddress address,
EthAccount sender,
Class<T> contractInterface) |
<T> T |
createContractProxy(SoliditySource code,
String contractName,
EthAddress address,
EthAccount sender,
Class<T> contractInterface) |
EthereumEventHandler |
events() |
EthValue |
getBalance(EthAccount account) |
EthValue |
getBalance(EthAddress addr) |
BigInteger |
getNonce(EthAddress address) |
CompletableFuture<EthAddress> |
publishContract(SoliditySource code,
String contractName,
EthAccount sender,
Object... constructorArgs) |
CompletableFuture<EthExecutionResult> |
sendEther(EthAccount fromAccount,
EthAddress to,
EthValue value) |
public static final Charset CHARSET
public EthereumFacade(BlockchainProxy blockchainProxy)
public EthereumFacade addInputHandlers(List<InputTypeConverter<?>> handlers)
public EthereumFacade addOutputHandlers(List<OutputTypeConverter> handlers)
public <T> T createContractProxy(SoliditySource code, String contractName, EthAddress address, EthAccount sender, Class<T> contractInterface) throws IOException
IOExceptionpublic <T> T createContractProxy(ContractAbi abi, EthAddress address, EthAccount sender, Class<T> contractInterface) throws IOException
IOExceptionpublic CompletableFuture<EthAddress> publishContract(SoliditySource code, String contractName, EthAccount sender, Object... constructorArgs)
public boolean addressExists(EthAddress address)
public EthValue getBalance(EthAddress addr)
public EthValue getBalance(EthAccount account)
public EthereumEventHandler events()
public CompletableFuture<EthExecutionResult> sendEther(EthAccount fromAccount, EthAddress to, EthValue value)
public BigInteger getNonce(EthAddress address)
Copyright © 2016. All rights reserved.