public class ConnectMgr extends Object
| 构造器和说明 |
|---|
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
public boolean sendRawTransaction(String hexData) throws ConnectorException, IOException
public 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
public Transaction getTransaction(String txhash) throws ConnectorException, IOException
public Object getTransactionJson(String txhash) throws ConnectorException, IOException
public int getNodeCount()
throws ConnectorException,
IOException
public int getBlockHeight()
throws ConnectorException,
IOException
public Block getBlock(int height) throws ConnectorException, IOException, SDKException
public Block getBlock(String hash) throws ConnectorException, IOException
public Object getBalance(String address) throws ConnectorException, IOException
public Object getBlockJson(int height) throws ConnectorException, IOException
public Object getBlockJson(String hash) throws ConnectorException, IOException
public Object getContract(String hash) throws ConnectorException, IOException
public Object getContractJson(String hash) throws ConnectorException, IOException
public 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 sideChianId) throws ConnectorException, IOException
Copyright © 2021. All rights reserved.