# accountInfo

```ts
function accountInfo(client, options): Promise<AccountInfoResult>;
```

Defined in: [packages/synapse-core/src/pay/payments.ts:62](https://github.com/FilOzone/synapse-sdk/blob/1d6c4b9fe34534bf1087dfe41491b72be0b46858/packages/synapse-core/src/pay/payments.ts#L62)

Get the account info from the payments contract.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `client` | `Client`\<`Transport`, `Chain`\> | The client to use. |
| `options` | [`AccountInfoOptions`](/reference/filoz/synapse-core/pay/type-aliases/accountinfooptions/) | The options to use. |

## Returns

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

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

## Throws

- ReadContractErrorType if the read contract fails.

## Throws

- GetBlockNumberErrorType if the get block number fails.