> For the complete documentation index, see [llms.txt](https://unirep.gitbook.io/unirep/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unirep.gitbook.io/unirep/getting-started/start-with-typescript/6.-epoch-transition.md).

# 6. Epoch transition

After `epochLength`, an epoch transition can be executed by any user.

```typescript
const tx = await contract.beginEpochTransition()
```

With test environment, the block number can be increased with

```typescript
await provider.send('evm_increaseTime', [epochLength])
```

{% hint style="info" %}
See: [evm\_increaseTime](https://hardhat.org/hardhat-network/docs/reference#evm_increasetime)
{% endhint %}
