java.lang.Object
com.hedera.hashgraph.sdk.AccountInfoFlow
Account Info Flow object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanverifySignature(Client client, AccountId accountId, byte[] message, byte[] signature) Is the signature valid.static CompletableFuture<Boolean> verifySignatureAsync(Client client, AccountId accountId, byte[] message, byte[] signature) Asynchronously determine if the signature is valid.static booleanverifyTransactionSignature(Client client, AccountId accountId, Transaction<?> transaction) Is the transaction signature valid.static CompletableFuture<Boolean> verifyTransactionSignatureAsync(Client client, AccountId accountId, Transaction<?> transaction) Asynchronously determine if the signature is valid.
-
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 clientaccountId- the account idmessage- the messagesignature- the signature- Returns:
- is the signature valid
- Throws:
PrecheckStatusException- when the precheck failsTimeoutException- 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 clientaccountId- the account idtransaction- the signed transaction- Returns:
- is the transaction signature valid
- Throws:
PrecheckStatusException- when the precheck failsTimeoutException- 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 clientaccountId- the account idmessage- the messagesignature- 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 clientaccountId- the account idtransaction- the signed transaction- Returns:
- is the signature valid
-