# 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/d80afb89df823a5628b86ab0edae21dc95850f82/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.