public class RestClient extends AbstractConnector
| Constructor and Description |
|---|
RestClient(String restUrl) |
public RestClient(String restUrl)
public String getUrl()
public String sendRawTransaction(String hexData) throws RestfulException
RestfulExceptionpublic String sendRawTransaction(boolean preExec, String userid, String hexData) throws RestfulException
RestfulExceptionpublic Transaction getRawTransaction(String txhash) throws RestfulException
RestfulExceptionpublic int getNodeCount()
throws RestfulException
RestfulExceptionpublic int getBlockHeight()
throws RestfulException
RestfulExceptionpublic Block getBlock(int height) throws RestfulException
RestfulExceptionpublic Block getBlock(String hash) throws RestfulException
RestfulExceptionpublic Object getBalance(String address) throws RestfulException
RestfulExceptionpublic Object getRawTransactionJson(String txhash) throws RestfulException, IOException
RestfulExceptionIOExceptionpublic Object getBlockJson(int height) throws RestfulException
RestfulExceptionpublic Object getBlockJson(String hash) throws RestfulException
RestfulExceptionpublic Object getContract(String hash) throws RestfulException
RestfulExceptionpublic Object getContractJson(String hash) throws RestfulException
RestfulExceptionpublic Object getSmartCodeEvent(int height) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getSmartCodeEvent(String hash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic int getBlockHeightByTxHash(String hash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic String getStorage(String codehash, String key) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getMerkleProof(String hash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic String getAllowance(String asset, String from, String to) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getMemPoolTxCount() throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getMemPoolTxState(String hash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic String getVersion() throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic String getGrantOng(String address) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic int getNetworkId()
throws ConnectorException,
IOException
ConnectorExceptionIOExceptionpublic Object getNodeSyncStatus() throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic String getSideChainData(String sideChainID) throws ConnectorException, IOException
ConnectorExceptionIOExceptionCopyright © 2020. All rights reserved.