Package foundation.omni.rpc
Interface OmniProxyMethods
- All Superinterfaces:
AsyncSupport
,AutoCloseable
,JsonRpcClient<JavaType>
,JsonRpcTransport<JavaType>
- All Known Implementing Classes:
OmniClient
,OmniTestClient
Interface with default methods implementing omniproxy RPCs.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.consensusj.jsonrpc.AsyncSupport
AsyncSupport.ThrowingSupplier<T>, AsyncSupport.TransientErrorFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bitcoinj.base.AddressParser
static final org.slf4j.Logger
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine if remote server is an OmniProxy server.default WalletAddressBalance
omniProxyGetBalance
(org.bitcoinj.base.Address address) default OmniJBalances
omniProxyGetBalances
(List<org.bitcoinj.base.Address> addresses) default CompletableFuture
<TokenRichList<OmniValue, CurrencyID>> omniProxyGetRichList
(CurrencyID id, int size) default TokenRichList
<OmniValue, CurrencyID> omniProxyGetRichListSync
(CurrencyID id, int size) default CompletableFuture
<List<OmniPropertyInfo>> Methods inherited from interface org.consensusj.jsonrpc.AsyncSupport
getDefaultAsyncExecutor, supplyAsync, supplyAsync
Methods inherited from interface org.consensusj.jsonrpc.JsonRpcClient
buildJsonRequest, buildJsonRequest, close, collectionTypeForClasses, collectionTypeForClasses, defaultType, getJsonRpcVersion, responseTypeFor, responseTypeFor, send, send, send, send, send, send, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, typeForClass
Methods inherited from interface org.consensusj.jsonrpc.JsonRpcTransport
getServerURI, sendRequestForResponse, sendRequestForResponseAsync, syncGet
-
Field Details
-
log
static final org.slf4j.Logger log -
addressParser
static final org.bitcoinj.base.AddressParser addressParser
-
-
Method Details
-
isOmniProxyServer
boolean isOmniProxyServer()Determine if remote server is an OmniProxy server.- Returns:
- true if server is OmniProxy
-
omniProxyListProperties
-
omniProxyGetRichList
default CompletableFuture<TokenRichList<OmniValue,CurrencyID>> omniProxyGetRichList(CurrencyID id, int size) -
omniProxyGetRichListSync
default TokenRichList<OmniValue,CurrencyID> omniProxyGetRichListSync(CurrencyID id, int size) throws IOException - Throws:
IOException
-
omniProxyGetBalance
default WalletAddressBalance omniProxyGetBalance(org.bitcoinj.base.Address address) throws IOException - Throws:
IOException
-
omniProxyGetBalances
default OmniJBalances omniProxyGetBalances(List<org.bitcoinj.base.Address> addresses) throws IOException - Throws:
IOException
-