public class WebsocketClient extends AbstractConnector
| 构造器和说明 |
|---|
WebsocketClient(String url,
Object lock) |
public static String wsUrl
public void setLog(boolean b)
public void startWebsocketThread(boolean log)
public String getUrl()
public void sendHeartBeat()
public void sendSubscribe(Map map)
public void send(Map map)
public void setReqId(long reqId)
public Object sendRawTransaction(boolean preExec, String userid, String hexData) throws ConnectorException, IOException
public Object sendRawTransaction(String hexData) throws ConnectorException, IOException
public Transaction getRawTransaction(String txhash) throws ConnectorException, IOException
public Object getRawTransactionJson(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
public Block getBlock(String hash) throws ConnectorException, IOException
public Block getBlockJson(int height) throws ConnectorException, IOException
public Block getBlockJson(String hash) throws ConnectorException, IOException
public Object getBalance(String address) 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 sideChainID) throws ConnectorException, IOException
public void wsStart()
Copyright © 2021. All rights reserved.