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 orphansvoid
getCurrentGeneration(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
Get the current generationvoid
getCurrentKeyBlock(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
Get the current key blockvoid
getCurrentKeyBlockHash(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<HashResponse>> resultHandler)
Get the hash of the current key blockvoid
getCurrentKeyBlockHeight(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<HeightResponse>> resultHandler)
Get the height of the current key blockvoid
getGenerationByHash(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
Get a generation by hashvoid
getGenerationByHeight(java.math.BigInteger height, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<Generation>> resultHandler)
Get a generation by heightvoid
getKeyBlockByHash(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
Get a key block by hashvoid
getKeyBlockByHeight(java.math.BigInteger height, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
Get a key block by heightvoid
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 hashvoid
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 indexvoid
getMicroBlockTransactionsByHash(java.lang.String hash, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<SignedTxs>> resultHandler)
Get micro block transactions by hashvoid
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 hashvoid
getPendingKeyBlock(java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<KeyBlock>> resultHandler)
Get the pending key blockvoid
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 blockvoid
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
-
-
Method Details
-
getApiClient
-
setApiClient
-
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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- 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 interfaceChainApi
- Parameters:
keyBlock
- Mined key block (required)resultHandler
- Asynchronous result handler
-