# 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:36](https://github.com/FilOzone/synapse-sdk/blob/7fdc04df4e3c52366a9f0cd55da4c05e20b2ed82/packages/synapse-react/src/payments/index.ts#L36)

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.