Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class CryptoServiceGrpc.CryptoServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<CryptoServiceGrpc.CryptoServiceBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<CryptoServiceGrpc.CryptoServiceBlockingV2Stub>
com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc.CryptoServiceBlockingV2Stub
- Enclosing class:
CryptoServiceGrpc
public static final class CryptoServiceGrpc.CryptoServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<CryptoServiceGrpc.CryptoServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service CryptoService.
Transactions and queries for the Hedera Crypto Service.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionaddLiveHash(Transaction request) Deprecated.approveAllowances(Transaction request) Add one or more approved allowances for spenders to transfer the paying account's hbar or tokens.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createAccount(Transaction request) Create a new account by submitting the transactioncryptoDelete(Transaction request) Delete an account by submitting the transactioncryptoGetBalance(Query request) Retrieve the balance of an accountcryptoTransfer(Transaction request) Initiate a transfer by submitting the transactiondeleteAllowances(Transaction request) Delete one or more of the specific approved NFT serial numbers on an owner account.deleteLiveHash(Transaction request) Deprecated.getAccountInfo(Query request) Retrieve the metadata of an accountgetAccountRecords(Query request) Return all transactions in the last 180s of consensus time for which the given account was the effective payer **and** network property `ledger.keepRecordsInState` was `true`.getLiveHash(Query request) Deprecated.getTransactionReceipts(Query request) Retrieve the latest receipt for a transaction that is either awaiting consensus, or reached consensus in the last 180 secondsgetTxRecordByTxID(Query request) Retrieve the record of a transaction that is either awaiting consensus, or reached consensus in the last 180 secondsupdateAccount(Transaction request) Update an account by submitting the transactionMethods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected CryptoServiceGrpc.CryptoServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<CryptoServiceGrpc.CryptoServiceBlockingV2Stub>
-
createAccount
Create a new account by submitting the transaction
- Throws:
io.grpc.StatusException
-
updateAccount
Update an account by submitting the transaction
- Throws:
io.grpc.StatusException
-
cryptoTransfer
Initiate a transfer by submitting the transaction
- Throws:
io.grpc.StatusException
-
cryptoDelete
Delete an account by submitting the transaction
- Throws:
io.grpc.StatusException
-
approveAllowances
Add one or more approved allowances for spenders to transfer the paying account's hbar or tokens.
- Throws:
io.grpc.StatusException
-
deleteAllowances
Delete one or more of the specific approved NFT serial numbers on an owner account.
- Throws:
io.grpc.StatusException
-
addLiveHash
@Deprecated public TransactionResponse addLiveHash(Transaction request) throws io.grpc.StatusException Deprecated.Add a livehash <blockquote>Important<blockquote> This transaction is obsolete, not supported, and SHALL fail with a pre-check result of `NOT_SUPPORTED`.</blockquote></blockquote>
- Throws:
io.grpc.StatusException
-
deleteLiveHash
@Deprecated public TransactionResponse deleteLiveHash(Transaction request) throws io.grpc.StatusException Deprecated.Delete a livehash <blockquote>Important<blockquote> This transaction is obsolete, not supported, and SHALL fail with a pre-check result of `NOT_SUPPORTED`.</blockquote></blockquote>
- Throws:
io.grpc.StatusException
-
getLiveHash
Deprecated.Retrieve a livehash for an account <blockquote>Important<blockquote> This query is obsolete, not supported, and SHALL fail with a pre-check result of `NOT_SUPPORTED`.</blockquote></blockquote>
- Throws:
io.grpc.StatusException
-
getAccountRecords
Return all transactions in the last 180s of consensus time for which the given account was the effective payer **and** network property `ledger.keepRecordsInState` was `true`.
- Throws:
io.grpc.StatusException
-
cryptoGetBalance
Retrieve the balance of an account
- Throws:
io.grpc.StatusException
-
getAccountInfo
Retrieve the metadata of an account
- Throws:
io.grpc.StatusException
-
getTransactionReceipts
Retrieve the latest receipt for a transaction that is either awaiting consensus, or reached consensus in the last 180 seconds
- Throws:
io.grpc.StatusException
-
getTxRecordByTxID
Retrieve the record of a transaction that is either awaiting consensus, or reached consensus in the last 180 seconds
- Throws:
io.grpc.StatusException
-