# parseAccounts

> **parseAccounts**(`data`, `currentEpoch`): [`OutputType`](/reference/filoz/synapse-core/pay/namespaces/accounts/type-aliases/outputtype/)

Defined in: [packages/synapse-core/src/pay/accounts.ts:162](https://github.com/FilOzone/synapse-sdk/blob/d9d7ff65cc57a0664db3a209a0d25c3a4d4e34f0/packages/synapse-core/src/pay/accounts.ts#L162)

Parse the contract output into the accounts output type

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `data` | readonly \[`bigint`, `bigint`, `bigint`, `bigint`\] | The contract output from the accounts function |
| `currentEpoch` | `bigint` | The current epoch (block number in filecoin) |

## Returns

[`OutputType`](/reference/filoz/synapse-core/pay/namespaces/accounts/type-aliases/outputtype/)

The parsed account information [accounts.OutputType](/reference/filoz/synapse-core/pay/namespaces/accounts/type-aliases/outputtype/)