
software.crldev.elrondspringbootstarterreactive.interactor.block.ErdBlockInteractor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elrond-spring-boot-starter-reactive Show documentation
Show all versions of elrond-spring-boot-starter-reactive Show documentation
A SpringBoot Starter solution designed to ensure easy and efficient integration with the Elrond Network using a Reactive API layer.
The newest version!
package software.crldev.elrondspringbootstarterreactive.interactor.block;
import software.crldev.elrondspringbootstarterreactive.api.model.Hyperblock;
import software.crldev.elrondspringbootstarterreactive.api.model.ShardBlock;
import reactor.core.publisher.Mono;
/**
* Interface used for interaction with hyperblocks / shard blocks on the network
*
* @author carlo_stanciu
*/
public interface ErdBlockInteractor {
/**
* Method used to query Hyperblock information by nonce
*
* @param nonce - value used as query parameter
* @return - Hyperblock API response
*/
Mono queryHyperblockByNonce(Long nonce);
/**
* Method used to query Hyperblock information by hash
*
* @param hash - value used as query parameter
* @return - Hyperblock API response
*/
Mono queryHyperblockByHash(String hash);
/**
* Method used to query ShardBlock information by shard and nonce
*
* @param shard - value used as query parameter
* @param nonce - value used as query parameter
* @return - ShardBlock API response
*/
Mono queryShardBlockByNonceFromShard(Integer shard, Long nonce);
/**
* Method used to query ShardBlock information by shard and hash
*
* @param shard - value used as query parameter
* @param hash - value used as query parameter
* @return - ShardBlock API response
*/
Mono queryShardBlockByHashFromShard(Integer shard, String hash);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy