Class AccountInfoFlow

java.lang.Object
com.hedera.hashgraph.sdk.AccountInfoFlow

public class AccountInfoFlow extends Object
Account Info Flow object.
  • Constructor Details

    • AccountInfoFlow

      public AccountInfoFlow()
  • Method Details

    • verifySignature

      public static boolean verifySignature(Client client, AccountId accountId, byte[] message, byte[] signature) throws PrecheckStatusException, TimeoutException
      Is the signature valid.
      Parameters:
      client - the client
      accountId - the account id
      message - the message
      signature - the signature
      Returns:
      is the signature valid
      Throws:
      PrecheckStatusException - when the precheck fails
      TimeoutException - when the transaction times out
    • verifyTransactionSignature

      public static boolean verifyTransactionSignature(Client client, AccountId accountId, Transaction<?> transaction) throws PrecheckStatusException, TimeoutException
      Is the transaction signature valid.
      Parameters:
      client - the client
      accountId - the account id
      transaction - the signed transaction
      Returns:
      is the transaction signature valid
      Throws:
      PrecheckStatusException - when the precheck fails
      TimeoutException - when the transaction times out
    • verifySignatureAsync

      public static CompletableFuture<Boolean> verifySignatureAsync(Client client, AccountId accountId, byte[] message, byte[] signature)
      Asynchronously determine if the signature is valid.
      Parameters:
      client - the client
      accountId - the account id
      message - the message
      signature - the signature
      Returns:
      is the signature valid
    • verifyTransactionSignatureAsync

      public static CompletableFuture<Boolean> verifyTransactionSignatureAsync(Client client, AccountId accountId, Transaction<?> transaction)
      Asynchronously determine if the signature is valid.
      Parameters:
      client - the client
      accountId - the account id
      transaction - the signed transaction
      Returns:
      is the signature valid