# useAccountInfo

```ts
function useAccountInfo(props?): UseQueryResult<AccountInfoResult, Error>;
```

Defined in: [synapse-react/src/payments/index.ts:48](https://github.com/FilOzone/synapse-sdk/blob/1d6c4b9fe34534bf1087dfe41491b72be0b46858/packages/synapse-react/src/payments/index.ts#L48)

Get the account info from the payments contract.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `props?` | `UseAccountInfoProps` | The props for the balance. |

## Returns

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

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