# 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/ccd1546626324814f05a7401da066d4361eb8bda/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/)