Class ChainApiImpl

java.lang.Object
com.kryptokrauts.aeternity.generated.api.ChainApiImpl
All Implemented Interfaces:
ChainApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
           date="2022-01-10T23:40:09.108255703Z[Etc/UTC]")
public class ChainApiImpl
extends java.lang.Object
implements ChainApi
  • Constructor Summary

    Constructors
    Constructor Description
    ChainApiImpl()  
    ChainApiImpl​(ApiClient apiClient)  
  • Method Summary

    Modifier and Type Method Description
    ApiClient getApiClient()  
    void getChainEnds​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.String>>> resultHandler)
    Get oldest keyblock hashes counting from genesis including orphans
    void getCurrentGeneration​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
    Get the current generation
    void getCurrentKeyBlock​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
    Get the current key block
    void getCurrentKeyBlockHash​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<HashResponse>> resultHandler)
    Get the hash of the current key block
    void getCurrentKeyBlockHeight​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<HeightResponse>> resultHandler)
    Get the height of the current key block
    void getGenerationByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
    Get a generation by hash
    void getGenerationByHeight​(java.math.BigInteger height, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
    Get a generation by height
    void getKeyBlockByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
    Get a key block by hash
    void getKeyBlockByHeight​(java.math.BigInteger height, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
    Get a key block by height
    void getMicroBlockHeaderByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<MicroBlockHeader>> resultHandler)
    Get a micro block header by hash
    void getMicroBlockTransactionByHashAndIndex​(java.lang.String hash, java.math.BigInteger index, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<SignedTx>> resultHandler)
    Get a micro block transaction by hash and index
    void getMicroBlockTransactionsByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<SignedTxs>> resultHandler)
    Get micro block transactions by hash
    void getMicroBlockTransactionsCountByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<CountResponse>> resultHandler)
    Get micro block transaction count by hash
    void getPendingKeyBlock​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
    Get the pending key block
    void getTopHeader​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Header>> resultHandler)
    Get the top header (either key or micro block)
    void postKeyBlock​(KeyBlock keyBlock, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler)
    Post a mined key block
    void setApiClient​(ApiClient apiClient)  

    Methods inherited from class java.lang.Object

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

    • ChainApiImpl

      public ChainApiImpl()
    • ChainApiImpl

      public ChainApiImpl​(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient​(ApiClient apiClient)
    • getChainEnds

      public void getChainEnds​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.String>>> resultHandler)
      Get oldest keyblock hashes counting from genesis including orphans
      Specified by:
      getChainEnds in interface ChainApi
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getCurrentGeneration

      public void getCurrentGeneration​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
      Get the current generation
      Specified by:
      getCurrentGeneration in interface ChainApi
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getCurrentKeyBlock

      public void getCurrentKeyBlock​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
      Get the current key block
      Specified by:
      getCurrentKeyBlock in interface ChainApi
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getCurrentKeyBlockHash

      public void getCurrentKeyBlockHash​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<HashResponse>> resultHandler)
      Get the hash of the current key block
      Specified by:
      getCurrentKeyBlockHash in interface ChainApi
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getCurrentKeyBlockHeight

      public void getCurrentKeyBlockHeight​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<HeightResponse>> resultHandler)
      Get the height of the current key block
      Specified by:
      getCurrentKeyBlockHeight in interface ChainApi
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getGenerationByHash

      public void getGenerationByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
      Get a generation by hash
      Specified by:
      getGenerationByHash in interface ChainApi
      Parameters:
      hash - The hash of the key block (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getGenerationByHeight

      public void getGenerationByHeight​(java.math.BigInteger height, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
      Get a generation by height
      Specified by:
      getGenerationByHeight in interface ChainApi
      Parameters:
      height - The height (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getKeyBlockByHash

      public void getKeyBlockByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
      Get a key block by hash
      Specified by:
      getKeyBlockByHash in interface ChainApi
      Parameters:
      hash - The hash of the block - either a keyblock or a microblock (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getKeyBlockByHeight

      public void getKeyBlockByHeight​(java.math.BigInteger height, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
      Get a key block by height
      Specified by:
      getKeyBlockByHeight in interface ChainApi
      Parameters:
      height - The height (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getMicroBlockHeaderByHash

      public void getMicroBlockHeaderByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<MicroBlockHeader>> resultHandler)
      Get a micro block header by hash
      Specified by:
      getMicroBlockHeaderByHash in interface ChainApi
      Parameters:
      hash - The hash of the block - either a keyblock or a microblock (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getMicroBlockTransactionByHashAndIndex

      public void getMicroBlockTransactionByHashAndIndex​(java.lang.String hash, java.math.BigInteger index, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<SignedTx>> resultHandler)
      Get a micro block transaction by hash and index
      Specified by:
      getMicroBlockTransactionByHashAndIndex in interface ChainApi
      Parameters:
      hash - The hash of the micro block (required)
      index - The index of the transaction in a block (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getMicroBlockTransactionsByHash

      public void getMicroBlockTransactionsByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<SignedTxs>> resultHandler)
      Get micro block transactions by hash
      Specified by:
      getMicroBlockTransactionsByHash in interface ChainApi
      Parameters:
      hash - The hash of the micro block (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getMicroBlockTransactionsCountByHash

      public void getMicroBlockTransactionsCountByHash​(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<CountResponse>> resultHandler)
      Get micro block transaction count by hash
      Specified by:
      getMicroBlockTransactionsCountByHash in interface ChainApi
      Parameters:
      hash - The hash of the micro block (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getPendingKeyBlock

      public void getPendingKeyBlock​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
      Get the pending key block
      Specified by:
      getPendingKeyBlock in interface ChainApi
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getTopHeader

      public void getTopHeader​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Header>> resultHandler)
      Get the top header (either key or micro block)
      Specified by:
      getTopHeader in interface ChainApi
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • postKeyBlock

      public void postKeyBlock​(KeyBlock keyBlock, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler)
      Post a mined key block
      Specified by:
      postKeyBlock in interface ChainApi
      Parameters:
      keyBlock - Mined key block (required)
      resultHandler - Asynchronous result handler