Class MiddlewareApiImpl

java.lang.Object
com.kryptokrauts.mdw.generated.api.MiddlewareApiImpl
All Implemented Interfaces:
MiddlewareApi

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

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

    Modifier and Type Method Description
    void getActiveNames​(java.lang.String by, java.lang.String direction, java.math.BigInteger page, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get active names.
    void getAllAuctions​(java.lang.String by, java.lang.String direction, java.math.BigInteger page, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<NameAuctions>> resultHandler)
    Get all auctions.
    void getAllNames​(java.lang.String by, java.lang.String direction, java.math.BigInteger page, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get all active and inactive names, except those in auction.
    ApiClient getApiClient()  
    void getBlockByHash​(java.lang.String hash, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get block information by given key/micro block hash.
    void getBlockByKbi​(java.math.BigInteger kbi, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get key block information by given key block index(height).
    void getBlockByKbiAndMbi​(java.math.BigInteger kbi, java.math.BigInteger mbi, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get micro block information by given key block index(height) and micro block index.
    void getBlocks​(java.lang.String rangeOrDir, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get multiple generations.
    void getCurrentTxCount​(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get count of transactions at the current height.
    void getNameAuctionById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<NameAuction>> resultHandler)  
    void getNameById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get information for given name or encoded hash.
    void getPointeesById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get names pointing to a particular pubkey.
    void getPointersById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get pointers for given name.
    void getStatus​(io.vertx.core.Handler<io.vertx.core.AsyncResult<Status>> resultHandler)
    Get middleware status.
    void getTxByHash​(java.lang.String hash, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get a transaction by a given hash.
    void getTxByIndex​(java.math.BigInteger index, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get a transaction by a given index.
    void getTxCountById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get transactions count and its type for given aeternity ID.
    void getTxsByDirection​(java.lang.String direction, java.util.List<java.lang.String> type, java.util.List<java.lang.String> typeGroup, java.lang.String account, java.lang.String contract, java.lang.String channel, java.lang.String oracle, java.math.BigInteger page, java.math.BigInteger limit, java.lang.String senderId, java.lang.String recipientId, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get a transactions from beginning or end of the chain.
    void getTxsByScopeTypeRange​(java.lang.String scopeType, java.lang.String range, java.util.List<java.lang.String> type, java.util.List<java.lang.String> typeGroup, java.lang.String account, java.lang.String contract, java.lang.String channel, java.lang.String oracle, java.math.BigInteger page, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
    Get a transactions bounded by scope/range.
    void setApiClient​(ApiClient apiClient)  

    Methods inherited from class java.lang.Object

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

    • MiddlewareApiImpl

      public MiddlewareApiImpl()
    • MiddlewareApiImpl

      public MiddlewareApiImpl​(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient​(ApiClient apiClient)
    • getActiveNames

      public void getActiveNames​(java.lang.String by, java.lang.String direction, java.math.BigInteger page, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get active names.
      Specified by:
      getActiveNames in interface MiddlewareApi
      Parameters:
      by - The ordering via parameters. (optional, default to expiration)
      direction - The direction - **forward** is from genesis to the end, **backward** is from end to the beginning. (optional, default to backward)
      page - The number of page to show. (optional, default to 1)
      limit - The numbers of items to return. (optional, default to 10)
      resultHandler - Asynchronous result handler
    • getAllAuctions

      public void getAllAuctions​(java.lang.String by, java.lang.String direction, java.math.BigInteger page, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<NameAuctions>> resultHandler)
      Get all auctions.
      Specified by:
      getAllAuctions in interface MiddlewareApi
      Parameters:
      by - The ordering via parameters. (optional, default to expiration)
      direction - The direction - **forward** is from genesis to the end, **backward** is from end to the beginning. (optional, default to backward)
      page - The number of page to show. (optional, default to 1)
      limit - The numbers of items to return. (optional, default to 10)
      resultHandler - Asynchronous result handler
    • getAllNames

      public void getAllNames​(java.lang.String by, java.lang.String direction, java.math.BigInteger page, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get all active and inactive names, except those in auction.
      Specified by:
      getAllNames in interface MiddlewareApi
      Parameters:
      by - The ordering via parameters. (optional, default to expiration)
      direction - The direction - **forward** is from genesis to the end, **backward** is from end to the beginning. (optional, default to backward)
      page - The number of page to show. (optional, default to 1)
      limit - The numbers of items to return. (optional, default to 10)
      resultHandler - Asynchronous result handler
    • getBlockByHash

      public void getBlockByHash​(java.lang.String hash, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get block information by given key/micro block hash.
      Specified by:
      getBlockByHash in interface MiddlewareApi
      Parameters:
      hash - The key/micro block hash. (required)
      resultHandler - Asynchronous result handler
    • getBlockByKbi

      public void getBlockByKbi​(java.math.BigInteger kbi, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get key block information by given key block index(height).
      Specified by:
      getBlockByKbi in interface MiddlewareApi
      Parameters:
      kbi - The key block index(height). (required)
      resultHandler - Asynchronous result handler
    • getBlockByKbiAndMbi

      public void getBlockByKbiAndMbi​(java.math.BigInteger kbi, java.math.BigInteger mbi, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get micro block information by given key block index(height) and micro block index.
      Specified by:
      getBlockByKbiAndMbi in interface MiddlewareApi
      Parameters:
      kbi - The key block index(height). (required)
      mbi - The micro block index. (required)
      resultHandler - Asynchronous result handler
    • getBlocks

      public void getBlocks​(java.lang.String rangeOrDir, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get multiple generations.
      Specified by:
      getBlocks in interface MiddlewareApi
      Parameters:
      rangeOrDir - The direction, which could be **forward** or **backward**, or non-negative integer range. (required)
      limit - The numbers of items to return. (optional, default to 10)
      resultHandler - Asynchronous result handler
    • getCurrentTxCount

      public void getCurrentTxCount​(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get count of transactions at the current height.
      Specified by:
      getCurrentTxCount in interface MiddlewareApi
      Parameters:
      resultHandler - Asynchronous result handler
    • getNameAuctionById

      public void getNameAuctionById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<NameAuction>> resultHandler)
      Specified by:
      getNameAuctionById in interface MiddlewareApi
      Parameters:
      id - The name or encoded hash. (required)
      resultHandler - Asynchronous result handler
    • getNameById

      public void getNameById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get information for given name or encoded hash.
      Specified by:
      getNameById in interface MiddlewareApi
      Parameters:
      id - The name or encoded hash. (required)
      resultHandler - Asynchronous result handler
    • getPointeesById

      public void getPointeesById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get names pointing to a particular pubkey.
      Specified by:
      getPointeesById in interface MiddlewareApi
      Parameters:
      id - The public key. (required)
      resultHandler - Asynchronous result handler
    • getPointersById

      public void getPointersById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get pointers for given name.
      Specified by:
      getPointersById in interface MiddlewareApi
      Parameters:
      id - The name. (required)
      resultHandler - Asynchronous result handler
    • getStatus

      public void getStatus​(io.vertx.core.Handler<io.vertx.core.AsyncResult<Status>> resultHandler)
      Get middleware status.
      Specified by:
      getStatus in interface MiddlewareApi
      Parameters:
      resultHandler - Asynchronous result handler
    • getTxByHash

      public void getTxByHash​(java.lang.String hash, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get a transaction by a given hash.
      Specified by:
      getTxByHash in interface MiddlewareApi
      Parameters:
      hash - The transaction hash. (required)
      resultHandler - Asynchronous result handler
    • getTxByIndex

      public void getTxByIndex​(java.math.BigInteger index, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get a transaction by a given index.
      Specified by:
      getTxByIndex in interface MiddlewareApi
      Parameters:
      index - The transaction index. (required)
      resultHandler - Asynchronous result handler
    • getTxCountById

      public void getTxCountById​(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get transactions count and its type for given aeternity ID.
      Specified by:
      getTxCountById in interface MiddlewareApi
      Parameters:
      id - The ID. (required)
      resultHandler - Asynchronous result handler
    • getTxsByDirection

      public void getTxsByDirection​(java.lang.String direction, java.util.List<java.lang.String> type, java.util.List<java.lang.String> typeGroup, java.lang.String account, java.lang.String contract, java.lang.String channel, java.lang.String oracle, java.math.BigInteger page, java.math.BigInteger limit, java.lang.String senderId, java.lang.String recipientId, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get a transactions from beginning or end of the chain. More [info](https://github.com/aeternity/ae_mdw#transaction-querying).
      Specified by:
      getTxsByDirection in interface MiddlewareApi
      Parameters:
      direction - The direction - **forward** is from genesis to the end, **backward** is from end to the beginning. (required)
      type - The transaction type. The query allows providing of multiple type parameters. [More info](https://github.com/aeternity/ae_mdw#types). (optional)
      typeGroup - The type group. The query allows providing of multiple type group parameters. [More info](https://github.com/aeternity/ae_mdw#types). (optional)
      account - The account ID. [More info](https://github.com/aeternity/ae_mdw#generic-ids). (optional)
      contract - The contract ID. [More info](https://github.com/aeternity/ae_mdw#generic-ids). (optional)
      channel - The channel ID. [More info](https://github.com/aeternity/ae_mdw#generic-ids). (optional)
      oracle - The oracle ID. [More info](https://github.com/aeternity/ae_mdw#generic-ids). (optional)
      page - The number of page to show. (optional, default to 1)
      limit - The numbers of items to return. (optional, default to 10)
      senderId - The sender ID. (optional)
      recipientId - The recipient ID. (optional)
      resultHandler - Asynchronous result handler
    • getTxsByScopeTypeRange

      public void getTxsByScopeTypeRange​(java.lang.String scopeType, java.lang.String range, java.util.List<java.lang.String> type, java.util.List<java.lang.String> typeGroup, java.lang.String account, java.lang.String contract, java.lang.String channel, java.lang.String oracle, java.math.BigInteger page, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get a transactions bounded by scope/range.
      Specified by:
      getTxsByScopeTypeRange in interface MiddlewareApi
      Parameters:
      scopeType - The scope type. (required)
      range - The range. (required)
      type - The transaction type. The query allows providing of multiple type parameters. [More info](https://github.com/aeternity/ae_mdw#types). (optional)
      typeGroup - The type group. The query allows providing of multiple type group parameters. [More info](https://github.com/aeternity/ae_mdw#types). (optional)
      account - The account ID. [More info](https://github.com/aeternity/ae_mdw#generic-ids). (optional)
      contract - The contract ID. [More info](https://github.com/aeternity/ae_mdw#generic-ids). (optional)
      channel - The channel ID. [More info](https://github.com/aeternity/ae_mdw#generic-ids). (optional)
      oracle - The oracle ID. [More info](https://github.com/aeternity/ae_mdw#generic-ids). (optional)
      page - The number of page to show. (optional, default to 1)
      limit - The numbers of items to return. (optional, default to 10)
      resultHandler - Asynchronous result handler