public class ConnectMgr extends Object
| Constructor and Description |
|---|
ConnectMgr(IConnector connector) |
ConnectMgr(String url,
String type) |
ConnectMgr(String url,
String type,
Object lock) |
public ConnectMgr(IConnector connector)
public void startWebsocketThread(boolean log)
public void setReqId(long n)
public void send(Map map)
public void sendHeartBeat()
public void sendSubscribe(Map map)
public void setConnector(IConnector connector)
public boolean sendRawTransaction(Transaction tx) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic boolean sendRawTransaction(String hexData) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object sendRawTransactionSync(String hexData) throws ConnectorException, Exception
hexData - ConnectorExceptionExceptionpublic Object syncSendRawTransaction(String hexData) throws ConnectorException, Exception
hexData - ConnectorExceptionExceptionpublic Object sendRawTransactionPreExec(String hexData) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Transaction getTransaction(String txhash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getTransactionJson(String txhash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic int getNodeCount()
throws ConnectorException,
IOException
ConnectorExceptionIOExceptionpublic int getBlockHeight()
throws ConnectorException,
IOException
ConnectorExceptionIOExceptionpublic Block getBlock(int height) throws ConnectorException, IOException, SDKException
public Block getBlock(String hash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getBalance(String address) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getBlockJson(int height) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getBlockJson(String hash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getContract(String hash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic Object getContractJson(String hash) throws ConnectorException, IOException
ConnectorExceptionIOExceptionpublic 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 sideChianId) throws ConnectorException, IOException
ConnectorExceptionIOExceptionCopyright © 2020. All rights reserved.