All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bloxbean.cardano.client.backend.api.EpochService Maven / Gradle / Ivy

package com.bloxbean.cardano.client.backend.api;

import com.bloxbean.cardano.client.api.exception.ApiException;
import com.bloxbean.cardano.client.backend.model.EpochContent;
import com.bloxbean.cardano.client.api.model.ProtocolParams;
import com.bloxbean.cardano.client.api.model.Result;

public interface EpochService {

    /**
     * Get latest epoch
     * @return
     * @throws ApiException
     */
    Result getLatestEpoch() throws ApiException;

    /**
     * Get epoch content by number
     * @param epoch
     * @return
     * @throws ApiException
     */
    Result getEpoch(Integer epoch) throws ApiException;

    /**
     * Get protocol parameters at epoch
     * @param epoch
     * @return
     * @throws ApiException
     */
    Result getProtocolParameters(Integer epoch) throws ApiException;

    /**
     * Get current protocol parameters
     * @return
     * @throws ApiException
     */
    Result getProtocolParameters() throws ApiException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy