# ProtocolsV2Interface

> Primary interface for managing protocol related metadata.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

Source: https://dev.flare.network/network/solidity-reference/ProtocolsV2Interface

Primary interface for managing protocol related metadata. This is a long-term support (LTS) interface, designed to ensure continuity even as underlying contracts evolve or protocols migrate to new versions.

Sourced from `ProtocolsV2Interface.sol` on [GitHub](https://github.com/flare-foundation/flare-smart-contracts-v2/blob/main/contracts/userInterfaces/LTS/ProtocolsV2Interface.sol).

## Functions[​](#functions "Direct link to Functions")

### firstRewardEpochStartTs[​](#firstrewardepochstartts "Direct link to firstRewardEpochStartTs")

Timestamp when the first reward epoch started, in seconds since UNIX epoch.

```
function firstRewardEpochStartTs() external view returns (    uint64);
```

### firstVotingRoundStartTs[​](#firstvotingroundstartts "Direct link to firstVotingRoundStartTs")

Timestamp when the first voting epoch started, in seconds since UNIX epoch.

```
function firstVotingRoundStartTs() external view returns (    uint64);
```

### getCurrentRewardEpochId[​](#getcurrentrewardepochid "Direct link to getCurrentRewardEpochId")

Returns the current reward epoch id.

```
function getCurrentRewardEpochId() external view returns (    uint24);
```

### getCurrentVotingEpochId[​](#getcurrentvotingepochid "Direct link to getCurrentVotingEpochId")

Returns the current voting epoch id.

```
function getCurrentVotingEpochId() external view returns (    uint32);
```

### getStartVotingRoundId[​](#getstartvotingroundid "Direct link to getStartVotingRoundId")

Returns the start voting round id for given reward epoch id.

```
function getStartVotingRoundId(    uint256 _rewardEpochId) external view returns (    uint32);
```

### getVotePowerBlock[​](#getvotepowerblock "Direct link to getVotePowerBlock")

Returns the vote power block for given reward epoch id.

```
function getVotePowerBlock(    uint256 _rewardEpochId) external view returns (    uint64 _votePowerBlock);
```

### rewardEpochDurationSeconds[​](#rewardepochdurationseconds "Direct link to rewardEpochDurationSeconds")

Duration of reward epoch, in seconds.

```
function rewardEpochDurationSeconds() external view returns (    uint64);
```

### votingEpochDurationSeconds[​](#votingepochdurationseconds "Direct link to votingEpochDurationSeconds")

Duration of voting epoch, in seconds.

```
function votingEpochDurationSeconds() external view returns (    uint64);
```
