# account-kit/wallet-client

> Overview of account-kit/wallet-client

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

> **Note:** This package is being replaced by [`@alchemy/wallet-apis`](https://www.npmjs.com/package/@alchemy/wallet-apis), which is currently in beta. Start new integrations with `@alchemy/wallet-apis` instead.

Smart wallet client for interacting with smart accounts via the Wallet API.

## Getting started

```bash
npm i @account-kit/wallet-client
```

## Type Aliases

| Type Alias                                                                                                         | Description |
| :----------------------------------------------------------------------------------------------------------------- | :---------- |
| [FormatSignParams](/wallets/reference/account-kit/wallet-client/type-aliases/FormatSignParams)                     | -           |
| [FormatSignResult](/wallets/reference/account-kit/wallet-client/type-aliases/FormatSignResult)                     | -           |
| [GetAccountParam](/wallets/reference/account-kit/wallet-client/type-aliases/GetAccountParam)                       | -           |
| [GetCallsStatusParams](/wallets/reference/account-kit/wallet-client/type-aliases/GetCallsStatusParams)             | -           |
| [GetCallsStatusResult](/wallets/reference/account-kit/wallet-client/type-aliases/GetCallsStatusResult)             | -           |
| [GrantPermissionsParams](/wallets/reference/account-kit/wallet-client/type-aliases/GrantPermissionsParams)         | -           |
| [GrantPermissionsResult](/wallets/reference/account-kit/wallet-client/type-aliases/GrantPermissionsResult)         | -           |
| [ListAccountsParams](/wallets/reference/account-kit/wallet-client/type-aliases/ListAccountsParams)                 | -           |
| [ListAccountsResult](/wallets/reference/account-kit/wallet-client/type-aliases/ListAccountsResult)                 | -           |
| [PrepareCallsParams](/wallets/reference/account-kit/wallet-client/type-aliases/PrepareCallsParams)                 | -           |
| [PrepareCallsResult](/wallets/reference/account-kit/wallet-client/type-aliases/PrepareCallsResult)                 | -           |
| [PrepareSignParams](/wallets/reference/account-kit/wallet-client/type-aliases/PrepareSignParams)                   | -           |
| [PrepareSignResult](/wallets/reference/account-kit/wallet-client/type-aliases/PrepareSignResult)                   | -           |
| [RequestAccountParams](/wallets/reference/account-kit/wallet-client/type-aliases/RequestAccountParams)             | -           |
| [RequestAccountResult](/wallets/reference/account-kit/wallet-client/type-aliases/RequestAccountResult)             | -           |
| [SendCallsParams](/wallets/reference/account-kit/wallet-client/type-aliases/SendCallsParams)                       | -           |
| [SendCallsResult](/wallets/reference/account-kit/wallet-client/type-aliases/SendCallsResult)                       | -           |
| [SendPreparedCallsParams](/wallets/reference/account-kit/wallet-client/type-aliases/SendPreparedCallsParams)       | -           |
| [SendPreparedCallsResult](/wallets/reference/account-kit/wallet-client/type-aliases/SendPreparedCallsResult)       | -           |
| [SignMessageParams](/wallets/reference/account-kit/wallet-client/type-aliases/SignMessageParams)                   | -           |
| [SignMessageResult](/wallets/reference/account-kit/wallet-client/type-aliases/SignMessageResult)                   | -           |
| [SignPreparedCallsParams](/wallets/reference/account-kit/wallet-client/type-aliases/SignPreparedCallsParams)       | -           |
| [SignPreparedCallsResult](/wallets/reference/account-kit/wallet-client/type-aliases/SignPreparedCallsResult)       | -           |
| [SignSignatureRequestParams](/wallets/reference/account-kit/wallet-client/type-aliases/SignSignatureRequestParams) | -           |
| [SignSignatureRequestResult](/wallets/reference/account-kit/wallet-client/type-aliases/SignSignatureRequestResult) | -           |
| [SignTypedDataParams](/wallets/reference/account-kit/wallet-client/type-aliases/SignTypedDataParams)               | -           |
| [SignTypedDataResult](/wallets/reference/account-kit/wallet-client/type-aliases/SignTypedDataResult)               | -           |
| [SmartWalletClient](/wallets/reference/account-kit/wallet-client/type-aliases/SmartWalletClient)                   | -           |
| [SmartWalletClientParams](/wallets/reference/account-kit/wallet-client/type-aliases/SmartWalletClientParams)       | -           |

## Functions

| Function                                                                                                  | Description                                                                                                                                                                                                                                            |
| :-------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [createSmartWalletClient](/wallets/reference/account-kit/wallet-client/functions/createSmartWalletClient) | Creates a smart wallet client that can be used to interact with a smart account.                                                                                                                                                                       |
| [formatSign](/wallets/reference/account-kit/wallet-client/functions/formatSign)                           | Formats a signature request for signing messages or transactions.                                                                                                                                                                                      |
| [getCallsStatus](/wallets/reference/account-kit/wallet-client/functions/getCallsStatus)                   | Gets the status of a prepared call by its ID. This method is used to check the execution status of calls sent via sendPreparedCalls.                                                                                                                   |
| [grantPermissions](/wallets/reference/account-kit/wallet-client/functions/grantPermissions)               | Grants permissions to a smart account by creating a session. This allows another key to perform operations on behalf of the account.                                                                                                                   |
| [listAccounts](/wallets/reference/account-kit/wallet-client/functions/listAccounts)                       | Lists all smart accounts for a given signer using the wallet API client.                                                                                                                                                                               |
| [prepareCalls](/wallets/reference/account-kit/wallet-client/functions/prepareCalls)                       | Prepares a set of contract calls for execution by building a user operation. Returns the built user operation and a signature request that needs to be signed before submitting to sendPreparedCalls.                                                  |
| [prepareSign](/wallets/reference/account-kit/wallet-client/functions/prepareSign)                         | Prepares a signature request for signing messages or transactions.                                                                                                                                                                                     |
| [requestAccount](/wallets/reference/account-kit/wallet-client/functions/requestAccount)                   | Requests an account for the provided signer using the wallet API client. If an account already exists for the signer, it will always return that account unless a new ID is specified. If an account already exists, the creationHint will be ignored. |
| [sendCalls](/wallets/reference/account-kit/wallet-client/functions/sendCalls)                             | Prepares, signs, and submits calls. This function internally calls `prepareCalls`, `signPreparedCalls`, and `sendPreparedCalls`.                                                                                                                       |
| [sendPreparedCalls](/wallets/reference/account-kit/wallet-client/functions/sendPreparedCalls)             | Sends prepared calls by submitting a signed user operation. This method is used after signing the signature request returned from prepareCalls.                                                                                                        |
| [signMessage](/wallets/reference/account-kit/wallet-client/functions/signMessage)                         | Signs a message using the smart account. This method requests the account associated with the signer and uses it to sign the message.                                                                                                                  |
| [signPreparedCalls](/wallets/reference/account-kit/wallet-client/functions/signPreparedCalls)             | Signs prepared calls using the provided signer.                                                                                                                                                                                                        |
| [signSignatureRequest](/wallets/reference/account-kit/wallet-client/functions/signSignatureRequest)       | Signs a signature request using the provided signer. This method handles different types of signature requests including personal_sign, eth_signTypedData_v4, and authorization.                                                                       |
| [signTypedData](/wallets/reference/account-kit/wallet-client/functions/signTypedData)                     | Signs typed data (EIP-712) using the smart account. This method requests the account associated with the signer and uses it to sign the typed data.                                                                                                    |
| [waitForCallsStatus](/wallets/reference/account-kit/wallet-client/functions/waitForCallsStatus)           | Waits for the status of a prepared call to be updated, returning after the calls are no longer pending.                                                                                                                                                |