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.
 
  • Method Details

    • build

      protected CryptoServiceGrpc.CryptoServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<CryptoServiceGrpc.CryptoServiceBlockingV2Stub>
    • createAccount

      public TransactionResponse createAccount(Transaction request) throws io.grpc.StatusException
      
       Create a new account by submitting the transaction
       
      Throws:
      io.grpc.StatusException
    • updateAccount

      public TransactionResponse updateAccount(Transaction request) throws io.grpc.StatusException
      
       Update an account by submitting the transaction
       
      Throws:
      io.grpc.StatusException
    • cryptoTransfer

      public TransactionResponse cryptoTransfer(Transaction request) throws io.grpc.StatusException
      
       Initiate a transfer by submitting the transaction
       
      Throws:
      io.grpc.StatusException
    • cryptoDelete

      public TransactionResponse cryptoDelete(Transaction request) throws io.grpc.StatusException
      
       Delete an account by submitting the transaction
       
      Throws:
      io.grpc.StatusException
    • approveAllowances

      public TransactionResponse approveAllowances(Transaction request) throws io.grpc.StatusException
      
       Add one or more approved allowances for spenders to transfer the paying
       account's hbar or tokens.
       
      Throws:
      io.grpc.StatusException
    • deleteAllowances

      public TransactionResponse deleteAllowances(Transaction request) throws io.grpc.StatusException
      
       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 public Response getLiveHash(Query request) throws io.grpc.StatusException
      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

      public Response getAccountRecords(Query request) throws io.grpc.StatusException
      
       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

      public Response cryptoGetBalance(Query request) throws io.grpc.StatusException
      
       Retrieve the balance of an account
       
      Throws:
      io.grpc.StatusException
    • getAccountInfo

      public Response getAccountInfo(Query request) throws io.grpc.StatusException
      
       Retrieve the metadata of an account
       
      Throws:
      io.grpc.StatusException
    • getTransactionReceipts

      public Response getTransactionReceipts(Query request) throws io.grpc.StatusException
      
       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

      public Response getTxRecordByTxID(Query request) throws io.grpc.StatusException
      
       Retrieve the record of a transaction that is either awaiting consensus,
       or reached consensus in the last 180 seconds
       
      Throws:
      io.grpc.StatusException