Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class CryptoServiceGrpc.CryptoServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<CryptoServiceGrpc.CryptoServiceStub>
io.grpc.stub.AbstractAsyncStub<CryptoServiceGrpc.CryptoServiceStub>
com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc.CryptoServiceStub
- Enclosing class:
CryptoServiceGrpc
public static final class CryptoServiceGrpc.CryptoServiceStub
extends io.grpc.stub.AbstractAsyncStub<CryptoServiceGrpc.CryptoServiceStub>
A stub to allow clients to do asynchronous 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 TypeMethodDescriptionvoidaddLiveHash(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Deprecated.voidapproveAllowances(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Add one or more approved allowances for spenders to transfer the paying account's hbar or tokens.protected CryptoServiceGrpc.CryptoServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateAccount(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Create a new account by submitting the transactionvoidcryptoDelete(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Delete an account by submitting the transactionvoidcryptoGetBalance(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) Retrieve the balance of an accountvoidcryptoTransfer(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Initiate a transfer by submitting the transactionvoiddeleteAllowances(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Delete one or more of the specific approved NFT serial numbers on an owner account.voiddeleteLiveHash(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Deprecated.voidgetAccountInfo(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) Retrieve the metadata of an accountvoidgetAccountRecords(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) 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`.voidgetLiveHash(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) Deprecated.voidgetTransactionReceipts(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) Retrieve the latest receipt for a transaction that is either awaiting consensus, or reached consensus in the last 180 secondsvoidgetTxRecordByTxID(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) Retrieve the record of a transaction that is either awaiting consensus, or reached consensus in the last 180 secondsvoidupdateAccount(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Update an account by submitting the transactionMethods inherited from class io.grpc.stub.AbstractAsyncStub
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.CryptoServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<CryptoServiceGrpc.CryptoServiceStub>
-
createAccount
public void createAccount(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Create a new account by submitting the transaction
-
updateAccount
public void updateAccount(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Update an account by submitting the transaction
-
cryptoTransfer
public void cryptoTransfer(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Initiate a transfer by submitting the transaction
-
cryptoDelete
public void cryptoDelete(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Delete an account by submitting the transaction
-
approveAllowances
public void approveAllowances(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Add one or more approved allowances for spenders to transfer the paying account's hbar or tokens.
-
deleteAllowances
public void deleteAllowances(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Delete one or more of the specific approved NFT serial numbers on an owner account.
-
addLiveHash
@Deprecated public void addLiveHash(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) 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>
-
deleteLiveHash
@Deprecated public void deleteLiveHash(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) 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>
-
getLiveHash
@Deprecated public void getLiveHash(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) 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>
-
getAccountRecords
public void getAccountRecords(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) 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`.
-
cryptoGetBalance
Retrieve the balance of an account
-
getAccountInfo
Retrieve the metadata of an account
-
getTransactionReceipts
public void getTransactionReceipts(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) Retrieve the latest receipt for a transaction that is either awaiting consensus, or reached consensus in the last 180 seconds
-
getTxRecordByTxID
public void getTxRecordByTxID(Query request, io.grpc.stub.StreamObserver<Response> responseObserver) Retrieve the record of a transaction that is either awaiting consensus, or reached consensus in the last 180 seconds
-