# parseAccounts

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

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

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