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 voidgetActiveNames(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.voidgetAllAuctions(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.voidgetAllNames(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.ApiClientgetApiClient()voidgetBlockByHash(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.voidgetBlockByKbi(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).voidgetBlockByKbiAndMbi(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.voidgetBlocks(java.lang.String rangeOrDir, java.math.BigInteger limit, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Get multiple generations.voidgetCurrentTxCount(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Get count of transactions at the current height.voidgetNameAuctionById(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<NameAuction>> resultHandler)voidgetNameById(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Get information for given name or encoded hash.voidgetPointeesById(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Get names pointing to a particular pubkey.voidgetPointersById(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Get pointers for given name.voidgetStatus(io.vertx.core.Handler<io.vertx.core.AsyncResult<Status>> resultHandler)Get middleware status.voidgetTxByHash(java.lang.String hash, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Get a transaction by a given hash.voidgetTxByIndex(java.math.BigInteger index, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Get a transaction by a given index.voidgetTxCountById(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.voidgetTxsByDirection(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.voidgetTxsByScopeTypeRange(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.voidsetApiClient(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
-
-
Method Details
-
getApiClient
-
setApiClient
-
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:
getActiveNamesin interfaceMiddlewareApi- 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:
getAllAuctionsin interfaceMiddlewareApi- 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:
getAllNamesin interfaceMiddlewareApi- 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:
getBlockByHashin interfaceMiddlewareApi- 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:
getBlockByKbiin interfaceMiddlewareApi- 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:
getBlockByKbiAndMbiin interfaceMiddlewareApi- 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:
getBlocksin interfaceMiddlewareApi- 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:
getCurrentTxCountin interfaceMiddlewareApi- 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:
getNameAuctionByIdin interfaceMiddlewareApi- 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:
getNameByIdin interfaceMiddlewareApi- 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:
getPointeesByIdin interfaceMiddlewareApi- 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:
getPointersByIdin interfaceMiddlewareApi- Parameters:
id- The name. (required)resultHandler- Asynchronous result handler
-
getStatus
Get middleware status.- Specified by:
getStatusin interfaceMiddlewareApi- 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:
getTxByHashin interfaceMiddlewareApi- 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:
getTxByIndexin interfaceMiddlewareApi- 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:
getTxCountByIdin interfaceMiddlewareApi- 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:
getTxsByDirectionin interfaceMiddlewareApi- 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:
getTxsByScopeTypeRangein interfaceMiddlewareApi- 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
-