# useAccountInfo

> **useAccountInfo**(`props?`): `UseQueryResult`\<[`OutputType`](/reference/filoz/synapse-core/pay/namespaces/accounts/type-aliases/outputtype/), [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error)\>

Defined in: [synapse-react/src/payments/index.ts:40](https://github.com/FilOzone/synapse-sdk/blob/a3c661408bf8b3cb47684059a425c07b9ae50a64/packages/synapse-react/src/payments/index.ts#L40)

Get the account info from the payments contract.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `props?` | [`UseAccountInfoProps`](/reference/filoz/synapse-react/interfaces/useaccountinfoprops/) | The props for the balance. |

## Returns

`UseQueryResult`\<[`OutputType`](/reference/filoz/synapse-core/pay/namespaces/accounts/type-aliases/outputtype/), [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error)\>

The account info including funds, lockup details, and available balance.