Package foundation.omni.consensus
Class OmniCoreConsensusTool
java.lang.Object
foundation.omni.netapi.omnicore.OmniCoreClient
foundation.omni.consensus.OmniCoreConsensusTool
- All Implemented Interfaces:
ConsensusTool,ConsensusService,OmniBalanceService,ConsensusFetcher,AutoCloseable,RichListService<OmniValue,,CurrencyID> ChainTipService
Command-line tool and class for fetching Omni Core consensus data
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundation.omni.rpc.ConsensusFetcher
ConsensusFetcher.IndeterminateSnapshotException -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOmniCoreConsensusTool(OmniClient client) Constructor that takes an existing OmniClientOmniCoreConsensusTool(org.bitcoinj.base.Network network, URI coreURI) URI Constructor -
Method Summary
Methods inherited from class foundation.omni.netapi.omnicore.OmniCoreClient
balancesForAddressAsync, balancesForAddressesAsync, chainTipPublisher, close, createSnapshot, currentBlockHeightAsync, getActiveChainTip, getConsensusForCurrencyAsync, getDefaultSSLContext, getOmniClient, getRxOmniClient, getWalletAddresses, listSmartProperties, richList, richListUpdatesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface foundation.omni.rpc.ConsensusFetcher
attemptConsensusSnapshotAsync, completeOrRetryConsensusSnapshot, createSnapshot, currentBlockHeightAsync, getConsensusForCurrency, getConsensusForCurrencyAsync, getConsensusSnapshot, getConsensusSnapshotAsync, listSmartPropertiesMethods inherited from interface foundation.omni.consensus.ConsensusTool
runMethods inherited from interface foundation.omni.netapi.OmniBalanceService
balancesForAddress, balancesForAddresses
-
Field Details
-
client
-
-
Constructor Details
-
OmniCoreConsensusTool
URI Constructor- Parameters:
network- *bitcoinj* Network for server to connect tocoreURI- URI to connect to - user/pass if required, must be encoded in URL
-
OmniCoreConsensusTool
Constructor that takes an existing OmniClient- Parameters:
client- An existing client instance
-
-
Method Details
-
main
-