-
- All Implemented Interfaces:
-
org.bitcoindevkit.Disposable
public final class ServerFeaturesRes implements Disposable
Response to an ElectrumClient.server_features request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classServerFeaturesRes.Companion
-
Field Summary
Fields Modifier and Type Field Description private StringserverVersionprivate BlockHashgenesisHashprivate StringprotocolMinprivate StringprotocolMaxprivate StringhashFunctionprivate Longpruning
-
Method Summary
Modifier and Type Method Description final StringgetServerVersion()Server version reported. final UnitsetServerVersion(String serverVersion)Server version reported. final BlockHashgetGenesisHash()Hash of the genesis block. final UnitsetGenesisHash(BlockHash genesisHash)Hash of the genesis block. final StringgetProtocolMin()Minimum supported version of the protocol. final UnitsetProtocolMin(String protocolMin)Minimum supported version of the protocol. final StringgetProtocolMax()Maximum supported version of the protocol. final UnitsetProtocolMax(String protocolMax)Maximum supported version of the protocol. final StringgetHashFunction()Hash function used to create the ScriptHash.final UnitsetHashFunction(String hashFunction)Hash function used to create the ScriptHash.final LonggetPruning()Pruned height of the server. final UnitsetPruning(Long pruning)Pruned height of the server. Unitdestroy()-
-
Method Detail
-
getServerVersion
final String getServerVersion()
Server version reported.
-
setServerVersion
final Unit setServerVersion(String serverVersion)
Server version reported.
-
getGenesisHash
final BlockHash getGenesisHash()
Hash of the genesis block.
-
setGenesisHash
final Unit setGenesisHash(BlockHash 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.
-
-
-
-