java.lang.Object
com.kryptokrauts.aeternity.generated.api.rxjava.ChainApi

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

    Constructors
    Constructor Description
    ChainApi​(ChainApi delegate)  
  • Method Summary

    Modifier and Type Method Description
    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
    ChainApi getDelegate()  
    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)
    static ChainApi newInstance​(ChainApi arg)  
    void postKeyBlock​(KeyBlock keyBlock, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler)
    Post a mined key block
    io.reactivex.Single<java.util.List<java.lang.String>> rxGetChainEnds​(java.lang.Boolean intAsString)
    Get oldest keyblock hashes counting from genesis including orphans
    io.reactivex.Single<Generation> rxGetCurrentGeneration​(java.lang.Boolean intAsString)
    Get the current generation
    io.reactivex.Single<KeyBlock> rxGetCurrentKeyBlock​(java.lang.Boolean intAsString)
    Get the current key block
    io.reactivex.Single<HashResponse> rxGetCurrentKeyBlockHash​(java.lang.Boolean intAsString)
    Get the hash of the current key block
    io.reactivex.Single<HeightResponse> rxGetCurrentKeyBlockHeight​(java.lang.Boolean intAsString)
    Get the height of the current key block
    io.reactivex.Single<Generation> rxGetGenerationByHash​(java.lang.String hash, java.lang.Boolean intAsString)
    Get a generation by hash
    io.reactivex.Single<Generation> rxGetGenerationByHeight​(java.math.BigInteger height, java.lang.Boolean intAsString)
    Get a generation by height
    io.reactivex.Single<KeyBlock> rxGetKeyBlockByHash​(java.lang.String hash, java.lang.Boolean intAsString)
    Get a key block by hash
    io.reactivex.Single<KeyBlock> rxGetKeyBlockByHeight​(java.math.BigInteger height, java.lang.Boolean intAsString)
    Get a key block by height
    io.reactivex.Single<MicroBlockHeader> rxGetMicroBlockHeaderByHash​(java.lang.String hash, java.lang.Boolean intAsString)
    Get a micro block header by hash
    io.reactivex.Single<SignedTx> rxGetMicroBlockTransactionByHashAndIndex​(java.lang.String hash, java.math.BigInteger index, java.lang.Boolean intAsString)
    Get a micro block transaction by hash and index
    io.reactivex.Single<SignedTxs> rxGetMicroBlockTransactionsByHash​(java.lang.String hash, java.lang.Boolean intAsString)
    Get micro block transactions by hash
    io.reactivex.Single<CountResponse> rxGetMicroBlockTransactionsCountByHash​(java.lang.String hash, java.lang.Boolean intAsString)
    Get micro block transaction count by hash
    io.reactivex.Single<KeyBlock> rxGetPendingKeyBlock​(java.lang.Boolean intAsString)
    Get the pending key block
    io.reactivex.Single<Header> rxGetTopHeader​(java.lang.Boolean intAsString)
    Get the top header (either key or micro block)
    io.reactivex.Single<java.lang.Void> rxPostKeyBlock​(KeyBlock keyBlock)
    Post a mined key block

    Methods inherited from class java.lang.Object

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

    • ChainApi

      public ChainApi​(ChainApi delegate)
  • Method Details

    • getDelegate

      public ChainApi getDelegate()
    • 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
      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
    • rxGetChainEnds

      public io.reactivex.Single<java.util.List<java.lang.String>> rxGetChainEnds​(java.lang.Boolean intAsString)
      Get oldest keyblock hashes counting from genesis including orphans
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      Returns:
      Asynchronous result handler (RxJava Single)
    • getCurrentGeneration

      public void getCurrentGeneration​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
      Get the current generation
      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
    • rxGetCurrentGeneration

      public io.reactivex.Single<Generation> rxGetCurrentGeneration​(java.lang.Boolean intAsString)
      Get the current generation
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      Returns:
      Asynchronous result handler (RxJava Single)
    • getCurrentKeyBlock

      public void getCurrentKeyBlock​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
      Get the current key block
      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
    • rxGetCurrentKeyBlock

      public io.reactivex.Single<KeyBlock> rxGetCurrentKeyBlock​(java.lang.Boolean intAsString)
      Get the current key block
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetCurrentKeyBlockHash

      public io.reactivex.Single<HashResponse> rxGetCurrentKeyBlockHash​(java.lang.Boolean intAsString)
      Get the hash of the current key block
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetCurrentKeyBlockHeight

      public io.reactivex.Single<HeightResponse> rxGetCurrentKeyBlockHeight​(java.lang.Boolean intAsString)
      Get the height of the current key block
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetGenerationByHash

      public io.reactivex.Single<Generation> rxGetGenerationByHash​(java.lang.String hash, java.lang.Boolean intAsString)
      Get a generation by hash
      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)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetGenerationByHeight

      public io.reactivex.Single<Generation> rxGetGenerationByHeight​(java.math.BigInteger height, java.lang.Boolean intAsString)
      Get a generation by height
      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)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetKeyBlockByHash

      public io.reactivex.Single<KeyBlock> rxGetKeyBlockByHash​(java.lang.String hash, java.lang.Boolean intAsString)
      Get a key block by hash
      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)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetKeyBlockByHeight

      public io.reactivex.Single<KeyBlock> rxGetKeyBlockByHeight​(java.math.BigInteger height, java.lang.Boolean intAsString)
      Get a key block by height
      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)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetMicroBlockHeaderByHash

      public io.reactivex.Single<MicroBlockHeader> rxGetMicroBlockHeaderByHash​(java.lang.String hash, java.lang.Boolean intAsString)
      Get a micro block header by hash
      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)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetMicroBlockTransactionByHashAndIndex

      public io.reactivex.Single<SignedTx> rxGetMicroBlockTransactionByHashAndIndex​(java.lang.String hash, java.math.BigInteger index, java.lang.Boolean intAsString)
      Get a micro block transaction by hash and index
      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)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetMicroBlockTransactionsByHash

      public io.reactivex.Single<SignedTxs> rxGetMicroBlockTransactionsByHash​(java.lang.String hash, java.lang.Boolean intAsString)
      Get micro block transactions by hash
      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)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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
      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
    • rxGetMicroBlockTransactionsCountByHash

      public io.reactivex.Single<CountResponse> rxGetMicroBlockTransactionsCountByHash​(java.lang.String hash, java.lang.Boolean intAsString)
      Get micro block transaction count by hash
      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)
      Returns:
      Asynchronous result handler (RxJava Single)
    • getPendingKeyBlock

      public void getPendingKeyBlock​(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
      Get the pending key block
      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
    • rxGetPendingKeyBlock

      public io.reactivex.Single<KeyBlock> rxGetPendingKeyBlock​(java.lang.Boolean intAsString)
      Get the pending key block
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      Returns:
      Asynchronous result handler (RxJava Single)
    • 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)
      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
    • rxGetTopHeader

      public io.reactivex.Single<Header> rxGetTopHeader​(java.lang.Boolean intAsString)
      Get the top header (either key or micro block)
      Parameters:
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      Returns:
      Asynchronous result handler (RxJava Single)
    • postKeyBlock

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

      public io.reactivex.Single<java.lang.Void> rxPostKeyBlock​(KeyBlock keyBlock)
      Post a mined key block
      Parameters:
      keyBlock - Mined key block (required)
      Returns:
      Asynchronous result handler (RxJava Single)
    • newInstance

      public static ChainApi newInstance​(ChainApi arg)