Interface AccountService

All Known Implementing Classes:
AccountServiceImpl

public interface AccountService
  • Method Details

    • blockingGetAccount

      AccountResult blockingGetAccount()
      synchronously get the account

      using the account for the KeyPair defined in the ServiceConfiguration

      Returns:
      the account wrapped in a single AccountResult
    • blockingGetAccount

      AccountResult blockingGetAccount​(java.lang.String base58PublicKey)
      synchronously get the account

      using 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 account

      using the account for the KeyPair defined in the ServiceConfiguration

      Returns:
      asynchronous result handler (RxJava Single) for AccountResult
    • asyncGetAccount

      io.reactivex.Single<AccountResult> asyncGetAccount​(java.lang.String base58PublicKey)
      asynchronously get the account

      import 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" strategy

      using the account for the KeyPair defined in the ServiceConfiguration

      Returns:
      next nonce
    • asyncGetNextNonce

      io.reactivex.Single<java.math.BigInteger> asyncGetNextNonce​(NextNonceStrategy nextNonceStrategy)
      asynchronously given accounts next nonce

      using 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" strategy

      import 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 nonce

      import 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" strategy

      using the account for the KeyPair defined in the ServiceConfiguration

      Returns:
      next nonce
    • blockingGetNextNonce

      java.math.BigInteger blockingGetNextNonce​(NextNonceStrategy nextNonceStrategy)
      synchronously given accounts next nonce

      using 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" strategy

      import 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 nonce

      import 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