Interface AccountService
- All Known Implementing Classes:
AccountServiceImpl
public interface AccountService
-
Method Summary
Modifier and Type Method Description io.reactivex.Single<AccountResult>
asyncGetAccount()
asynchronously get the accountio.reactivex.Single<AccountResult>
asyncGetAccount(java.lang.String base58PublicKey)
asynchronously get the accountio.reactivex.Single<java.math.BigInteger>
asyncGetNextNonce()
asynchronously given accounts next nonce using "max" strategyio.reactivex.Single<java.math.BigInteger>
asyncGetNextNonce(NextNonceStrategy nextNonceStrategy)
asynchronously given accounts next nonceio.reactivex.Single<java.math.BigInteger>
asyncGetNextNonce(java.lang.String base58PublicKey)
asynchronously given accounts next nonce using "max" strategyio.reactivex.Single<java.math.BigInteger>
asyncGetNextNonce(java.lang.String base58PublicKey, NextNonceStrategy nextNonceStrategy)
asynchronously given accounts next nonceAccountResult
blockingGetAccount()
synchronously get the accountAccountResult
blockingGetAccount(java.lang.String base58PublicKey)
synchronously get the accountjava.math.BigInteger
blockingGetNextNonce()
synchronously given accounts next nonce using "max" strategyjava.math.BigInteger
blockingGetNextNonce(NextNonceStrategy nextNonceStrategy)
synchronously given accounts next noncejava.math.BigInteger
blockingGetNextNonce(java.lang.String base58PublicKey)
synchronously given accounts next nonce using "max" strategyjava.math.BigInteger
blockingGetNextNonce(java.lang.String base58PublicKey, NextNonceStrategy nextNonceStrategy)
synchronously given accounts next nonce
-
Method Details
-
blockingGetAccount
AccountResult blockingGetAccount()synchronously get the accountusing the account for the KeyPair defined in the
ServiceConfiguration
- Returns:
- the account wrapped in a single
AccountResult
-
blockingGetAccount
synchronously get the accountusing Base58 encoding, see
EncodingType
,EncodingUtils
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)- Returns:
- the account wrapped in a single
AccountResult
-
asyncGetAccount
io.reactivex.Single<AccountResult> asyncGetAccount()asynchronously get the accountusing the account for the KeyPair defined in the
ServiceConfiguration
- Returns:
- asynchronous result handler (RxJava Single) for
AccountResult
-
asyncGetAccount
asynchronously get the accountimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)- Returns:
- asynchronous result handler (RxJava Single) for
AccountResult
-
asyncGetNextNonce
io.reactivex.Single<java.math.BigInteger> asyncGetNextNonce()asynchronously given accounts next nonce using "max" strategyusing the account for the KeyPair defined in the
ServiceConfiguration
- Returns:
- next nonce
-
asyncGetNextNonce
asynchronously given accounts next nonceusing the account for the KeyPair defined in the
ServiceConfiguration
- Parameters:
nextNonceStrategy
- the strategy to use, one of: max, continuity- Returns:
- next nonce
-
asyncGetNextNonce
io.reactivex.Single<java.math.BigInteger> asyncGetNextNonce(java.lang.String base58PublicKey)asynchronously given accounts next nonce using "max" strategyimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)- Returns:
- next nonce
-
asyncGetNextNonce
io.reactivex.Single<java.math.BigInteger> asyncGetNextNonce(java.lang.String base58PublicKey, NextNonceStrategy nextNonceStrategy)asynchronously given accounts next nonceimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)nextNonceStrategy
- the strategy to use, one of: max, continuity- Returns:
- next nonce
-
blockingGetNextNonce
java.math.BigInteger blockingGetNextNonce()synchronously given accounts next nonce using "max" strategyusing the account for the KeyPair defined in the
ServiceConfiguration
- Returns:
- next nonce
-
blockingGetNextNonce
synchronously given accounts next nonceusing the account for the KeyPair defined in the
ServiceConfiguration
- Parameters:
nextNonceStrategy
- the strategy to use, one of: max, continuity- Returns:
- next nonce
-
blockingGetNextNonce
java.math.BigInteger blockingGetNextNonce(java.lang.String base58PublicKey)synchronously given accounts next nonce using "max" strategyimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)- Returns:
- next nonce
-
blockingGetNextNonce
java.math.BigInteger blockingGetNextNonce(java.lang.String base58PublicKey, NextNonceStrategy nextNonceStrategy)synchronously given accounts next nonceimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)nextNonceStrategy
- the strategy to use, one of: max, continuity- Returns:
- next nonce
-