Package ch.bitagent.bitcoin.lib.network
Class Electrum
- java.lang.Object
-
- ch.bitagent.bitcoin.lib.network.Electrum
-
public class Electrum extends Object
https://electrum-protocol.readthedocs.io/en/latest/
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbroadcastTransaction(String rawTx)StringcallSocket(String socket, String jsonRequest)LongestimateFee(int number)List<org.json.JSONObject>features()org.json.JSONObjectgetBalance(String scripthash)org.json.JSONArraygetHistory(String scripthash)org.json.JSONArraygetMempool(String scripthash)List<String>getSockets()StringgetTransaction(String txHash)org.json.JSONObjectgetTransactionVerbose(String txHash)Integerheight()org.json.JSONArraylistUnspent(String scripthash)org.json.JSONArraypeers()booleanping(String socket)List<org.json.JSONArray>versions()
-
-
-
Method Detail
-
ping
public boolean ping(String socket)
-
features
public List<org.json.JSONObject> features()
-
versions
public List<org.json.JSONArray> versions()
-
peers
public org.json.JSONArray peers()
-
height
public Integer height()
-
getHistory
public org.json.JSONArray getHistory(String scripthash)
-
getBalance
public org.json.JSONObject getBalance(String scripthash)
-
getMempool
public org.json.JSONArray getMempool(String scripthash)
-
listUnspent
public org.json.JSONArray listUnspent(String scripthash)
-
estimateFee
public Long estimateFee(int number)
-
getTransactionVerbose
public org.json.JSONObject getTransactionVerbose(String txHash)
-
-