Package org.bitcoindevkit
Class ServerFeaturesRes
-
- All Implemented Interfaces:
public final class ServerFeaturesRes
Response to an ElectrumClient.server_features request.
-
-
Field Summary
Fields Modifier and Type Field Description private String
serverVersion
private String
genesisHash
private String
protocolMin
private String
protocolMax
private String
hashFunction
private Long
pruning
-
Method Summary
Modifier and Type Method Description final String
getServerVersion()
Server version reported. final Unit
setServerVersion(String serverVersion)
Server version reported. final String
getGenesisHash()
Hash of the genesis block. final Unit
setGenesisHash(String genesisHash)
Hash of the genesis block. final String
getProtocolMin()
Minimum supported version of the protocol. final Unit
setProtocolMin(String protocolMin)
Minimum supported version of the protocol. final String
getProtocolMax()
Maximum supported version of the protocol. final Unit
setProtocolMax(String protocolMax)
Maximum supported version of the protocol. final String
getHashFunction()
Hash function used to create the ScriptHash
.final Unit
setHashFunction(String hashFunction)
Hash function used to create the ScriptHash
.final Long
getPruning()
Pruned height of the server. final Unit
setPruning(Long pruning)
Pruned height of the server.
-
-
-
Method Detail
-
getServerVersion
final String getServerVersion()
Server version reported.
-
setServerVersion
final Unit setServerVersion(String serverVersion)
Server version reported.
-
getGenesisHash
final String getGenesisHash()
Hash of the genesis block.
-
setGenesisHash
final Unit setGenesisHash(String genesisHash)
Hash of the genesis block.
-
getProtocolMin
final String getProtocolMin()
Minimum supported version of the protocol.
-
setProtocolMin
final Unit setProtocolMin(String protocolMin)
Minimum supported version of the protocol.
-
getProtocolMax
final String getProtocolMax()
Maximum supported version of the protocol.
-
setProtocolMax
final Unit setProtocolMax(String protocolMax)
Maximum supported version of the protocol.
-
getHashFunction
final String getHashFunction()
Hash function used to create the
ScriptHash
.
-
setHashFunction
final Unit setHashFunction(String hashFunction)
Hash function used to create the
ScriptHash
.
-
getPruning
final Long getPruning()
Pruned height of the server.
-
setPruning
final Unit setPruning(Long pruning)
Pruned height of the server.
-
-