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 Type
    Method
    Description
    void
    addLiveHash(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver)
    Deprecated.
    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.
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    createAccount(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver)
    Create a new account by submitting the transaction
    void
    cryptoDelete(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver)
    Delete an account by submitting the transaction
    void
    cryptoGetBalance(Query request, io.grpc.stub.StreamObserver<Response> responseObserver)
    Retrieve the balance of an account
    void
    cryptoTransfer(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver)
    Initiate a transfer by submitting the transaction
    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.
    void
    deleteLiveHash(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver)
    Deprecated.
    void
    getAccountInfo(Query request, io.grpc.stub.StreamObserver<Response> responseObserver)
    Retrieve the metadata of an account
    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`.
    void
    getLiveHash(Query request, io.grpc.stub.StreamObserver<Response> responseObserver)
    Deprecated.
    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
    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
    void
    updateAccount(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver)
    Update an account by submitting the transaction

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected CryptoServiceGrpc.CryptoServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.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

      public void cryptoGetBalance(Query request, io.grpc.stub.StreamObserver<Response> responseObserver)
      
       Retrieve the balance of an account
       
    • getAccountInfo

      public void getAccountInfo(Query request, io.grpc.stub.StreamObserver<Response> responseObserver)
      
       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