> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arksat.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Connection and accounts

> Connect, read accounts, and disconnect.

Use `client = createArksatClient(provider)`. Example variables are supplied by the application.

## connect

Requests connection or additional permissions. read accepts transactions; actions accepts issueAsset, reissueAsset, and burnAsset.

**Parameters**

```ts theme={null}
input?: ArksatConnectOptions
```

**Returns**

```ts theme={null}
Promise<{ accounts: string[] }>
```

**Example**

```ts theme={null}
const { accounts } = await client.connect()
```

## disconnect

Disconnects the requesting website.

**Parameters**

```ts theme={null}
// No parameters
```

**Returns**

```ts theme={null}
Promise<void>
```

**Example**

```ts theme={null}
await client.disconnect()
```

## Provider account methods

Call directly on provider:

| Method | Result |
| - | - |
| isConnected() | Promise boolean |
| getAccounts() | Promise string array |
| getAddress() | Promise string |
| getPublicKey() | Promise string |
| requestAccounts() | Alias of connect; Promise string array |

Provider connect returns an address array; Client connect returns an accounts object. [Permissions](https://docs.arksat.xyz/en/connection.md).

[Errors](https://docs.arksat.xyz/en/errors.md) · [Type definitions](https://docs.arksat.xyz/en/reference/types.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.