Class ChainApi
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
-
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 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 blockChainApi
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 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)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 blockio.reactivex.Single<java.util.List<java.lang.String>>
rxGetChainEnds(java.lang.Boolean intAsString)
Get oldest keyblock hashes counting from genesis including orphansio.reactivex.Single<Generation>
rxGetCurrentGeneration(java.lang.Boolean intAsString)
Get the current generationio.reactivex.Single<KeyBlock>
rxGetCurrentKeyBlock(java.lang.Boolean intAsString)
Get the current key blockio.reactivex.Single<HashResponse>
rxGetCurrentKeyBlockHash(java.lang.Boolean intAsString)
Get the hash of the current key blockio.reactivex.Single<HeightResponse>
rxGetCurrentKeyBlockHeight(java.lang.Boolean intAsString)
Get the height of the current key blockio.reactivex.Single<Generation>
rxGetGenerationByHash(java.lang.String hash, java.lang.Boolean intAsString)
Get a generation by hashio.reactivex.Single<Generation>
rxGetGenerationByHeight(java.math.BigInteger height, java.lang.Boolean intAsString)
Get a generation by heightio.reactivex.Single<KeyBlock>
rxGetKeyBlockByHash(java.lang.String hash, java.lang.Boolean intAsString)
Get a key block by hashio.reactivex.Single<KeyBlock>
rxGetKeyBlockByHeight(java.math.BigInteger height, java.lang.Boolean intAsString)
Get a key block by heightio.reactivex.Single<MicroBlockHeader>
rxGetMicroBlockHeaderByHash(java.lang.String hash, java.lang.Boolean intAsString)
Get a micro block header by hashio.reactivex.Single<SignedTx>
rxGetMicroBlockTransactionByHashAndIndex(java.lang.String hash, java.math.BigInteger index, java.lang.Boolean intAsString)
Get a micro block transaction by hash and indexio.reactivex.Single<SignedTxs>
rxGetMicroBlockTransactionsByHash(java.lang.String hash, java.lang.Boolean intAsString)
Get micro block transactions by hashio.reactivex.Single<CountResponse>
rxGetMicroBlockTransactionsCountByHash(java.lang.String hash, java.lang.Boolean intAsString)
Get micro block transaction count by hashio.reactivex.Single<KeyBlock>
rxGetPendingKeyBlock(java.lang.Boolean intAsString)
Get the pending key blockio.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 blockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ChainApi
-
-
Method Details
-
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
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
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
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
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
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
Post a mined key block- Parameters:
keyBlock
- Mined key block (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
newInstance
-