public class BFBlockService extends BFBaseService implements BlockService
| Constructor and Description |
|---|
BFBlockService(java.lang.String baseUrl,
java.lang.String projectId) |
| Modifier and Type | Method and Description |
|---|---|
Result<Block> |
getBlockByHash(java.lang.String blockHash) |
Result<Block> |
getBlockByNumber(java.math.BigInteger blockNumber) |
Result<Block> |
getLastestBlock() |
getBaseUrl, getProjectId, getRetrofit, processResponsepublic BFBlockService(java.lang.String baseUrl,
java.lang.String projectId)
public Result<Block> getLastestBlock() throws ApiException
getLastestBlock in interface BlockServiceApiExceptionpublic Result<Block> getBlockByHash(java.lang.String blockHash) throws ApiException
getBlockByHash in interface BlockServiceApiExceptionpublic Result<Block> getBlockByNumber(java.math.BigInteger blockNumber) throws ApiException
getBlockByNumber in interface BlockServiceApiException