public class BFEpochService extends BFBaseService implements EpochService
| Constructor and Description |
|---|
BFEpochService(java.lang.String baseUrl,
java.lang.String projectId) |
| Modifier and Type | Method and Description |
|---|---|
Result<EpochContent> |
getEpoch(java.lang.Integer epoch)
Get epoch content by number
|
Result<EpochContent> |
getLatestEpoch()
Get latest epoch
|
Result<ProtocolParams> |
getProtocolParameters()
Get current protocol parameters
|
Result<ProtocolParams> |
getProtocolParameters(java.lang.Integer epoch)
Get protocol parameters at epoch
|
getBaseUrl, getProjectId, getRetrofit, processResponsepublic BFEpochService(java.lang.String baseUrl,
java.lang.String projectId)
public Result<EpochContent> getLatestEpoch() throws ApiException
EpochServicegetLatestEpoch in interface EpochServiceApiExceptionpublic Result<EpochContent> getEpoch(java.lang.Integer epoch) throws ApiException
EpochServicegetEpoch in interface EpochServiceApiExceptionpublic Result<ProtocolParams> getProtocolParameters(java.lang.Integer epoch) throws ApiException
EpochServicegetProtocolParameters in interface EpochServiceApiExceptionpublic Result<ProtocolParams> getProtocolParameters() throws ApiException
EpochServicegetProtocolParameters in interface EpochServiceApiException