Class OmniwalletModernJDKClient
java.lang.Object
foundation.omni.netapi.omniwallet.OmniwalletAbstractClient
foundation.omni.rest.omniwallet.mjdk.OmniwalletModernJDKClient
- All Implemented Interfaces:
ConsensusService
,OmniBalanceService
,RxOmniWalletClient
,ConsensusFetcher
,Closeable
,AutoCloseable
,ChainTipService
- Direct Known Subclasses:
OmniwalletConsensusTool
OmniwalletAbstractClient
implementation using JDK 11+ HttpClient
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundation.omni.rpc.ConsensusFetcher
ConsensusFetcher.IndeterminateSnapshotException
-
Field Summary
Fields inherited from class foundation.omni.netapi.omniwallet.OmniwalletAbstractClient
BALANCES_FOR_ADDRESSES_MAX_ADDR, baseURI, cachedPropertyTypes, CONNECT_TIMEOUT_MILLIS, debug, network, omniExplorerApiBase, omniwalletApiBase, omniwalletBase, READ_TIMEOUT_MILLIS, stagingBase, strictMode
-
Constructor Summary
ConstructorsConstructorDescriptionOmniwalletModernJDKClient
(URI baseURI) OmniwalletModernJDKClient
(URI baseURI, boolean debug, boolean strictMode, org.bitcoinj.base.Network network) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture
<Map<org.bitcoinj.base.Address, OmniwalletAddressBalance>> balanceMapForAddress
(org.bitcoinj.base.Address address) protected CompletableFuture
<Map<org.bitcoinj.base.Address, OmniwalletAddressBalance>> balanceMapForAddresses
(List<org.bitcoinj.base.Address> addresses) protected CompletableFuture
<List<AddressVerifyInfo>> verifyAddresses
(CurrencyID currencyID) Methods inherited from class foundation.omni.netapi.omniwallet.OmniwalletAbstractClient
balanceEntryMapper, balanceMapper, balancesForAddressAsync, balancesForAddressesAsync, chainTipPublisher, close, consensusURI, createSnapshot, currentBlockHeightAsync, divisibleToPropertyType, getActiveChainTip, getConsensusForCurrency, getConsensusForCurrencyAsync, listSmartProperties, lookupPropertyType, mapToSmartPropertyListInfo, start, toOmniDivisibleValue, toOmniDivisibleValue, toOmniIndivisibleValue, toOmniIndivisibleValue, toOmniValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundation.omni.rpc.ConsensusFetcher
attemptConsensusSnapshotAsync, completeOrRetryConsensusSnapshot, getConsensusSnapshot, getConsensusSnapshotAsync
Methods inherited from interface foundation.omni.netapi.OmniBalanceService
balancesForAddress, balancesForAddresses
Methods inherited from interface foundation.omni.netapi.omniwallet.RxOmniWalletClient
currentChainTipMaybe, pollChainTipOnce
-
Constructor Details
-
OmniwalletModernJDKClient
-
OmniwalletModernJDKClient
public OmniwalletModernJDKClient(URI baseURI, boolean debug, boolean strictMode, org.bitcoinj.base.Network network) - Parameters:
baseURI
- Base URL of serverdebug
- Enable debugging, logging, etc.strictMode
- Only accept valid amounts from servernetwork
- Specify active Bitcoin network (used for Address validation)
-
-
Method Details
-
propertiesList
- Specified by:
propertiesList
in classOmniwalletAbstractClient
-
revisionInfo
- Specified by:
revisionInfo
in classOmniwalletAbstractClient
-
balanceMapForAddress
protected CompletableFuture<Map<org.bitcoinj.base.Address,OmniwalletAddressBalance>> balanceMapForAddress(org.bitcoinj.base.Address address) - Specified by:
balanceMapForAddress
in classOmniwalletAbstractClient
-
balanceMapForAddresses
protected CompletableFuture<Map<org.bitcoinj.base.Address,OmniwalletAddressBalance>> balanceMapForAddresses(List<org.bitcoinj.base.Address> addresses) - Specified by:
balanceMapForAddresses
in classOmniwalletAbstractClient
-
verifyAddresses
- Specified by:
verifyAddresses
in classOmniwalletAbstractClient
-