# getExpiry

```ts
function getExpiry(client, options): Promise<bigint>;
```

Defined in: [packages/synapse-core/src/session-key/actions.ts:23](https://github.com/FilOzone/synapse-sdk/blob/1d6c4b9fe34534bf1087dfe41491b72be0b46858/packages/synapse-core/src/session-key/actions.ts#L23)

Check the expiry of the session key.

## Parameters

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

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`bigint`\>

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

## Throws

- ReadContractErrorType if the read contract fails.