public class RestClient extends AbstractConnector
| 构造器和说明 |
|---|
RestClient(String restUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAllowance(String asset,
String from,
String to) |
Object |
getBalance(String address) |
Block |
getBlock(int height) |
Block |
getBlock(String hash) |
int |
getBlockHeight() |
int |
getBlockHeightByTxHash(String hash) |
Object |
getBlockJson(int height) |
Object |
getBlockJson(String hash) |
Object |
getContract(String hash) |
Object |
getContractJson(String hash) |
String |
getGrantOng(String address) |
Object |
getMemPoolTxCount() |
Object |
getMemPoolTxState(String hash) |
Object |
getMerkleProof(String hash) |
int |
getNetworkId() |
int |
getNodeCount() |
Object |
getNodeSyncStatus() |
Transaction |
getRawTransaction(String txhash) |
Object |
getRawTransactionJson(String txhash) |
String |
getSideChainData(String sideChainID) |
Object |
getSmartCodeEvent(int height) |
Object |
getSmartCodeEvent(String hash) |
String |
getStorage(String codehash,
String key) |
String |
getUrl() |
String |
getVersion() |
String |
sendRawTransaction(boolean preExec,
String userid,
String hexData) |
String |
sendRawTransaction(String hexData) |
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
public 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
public Object getSmartCodeEvent(String hash) throws ConnectorException, IOException
public int getBlockHeightByTxHash(String hash) throws ConnectorException, IOException
public String getStorage(String codehash, String key) throws ConnectorException, IOException
public Object getMerkleProof(String hash) throws ConnectorException, IOException
public String getAllowance(String asset, String from, String to) throws ConnectorException, IOException
public Object getMemPoolTxCount() throws ConnectorException, IOException
public Object getMemPoolTxState(String hash) throws ConnectorException, IOException
public String getVersion() throws ConnectorException, IOException
public String getGrantOng(String address) throws ConnectorException, IOException
public int getNetworkId()
throws ConnectorException,
IOException
public Object getNodeSyncStatus() throws ConnectorException, IOException
public String getSideChainData(String sideChainID) throws ConnectorException, IOException
Copyright © 2021. All rights reserved.