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