# fromWalletAdapter (Solana)

> Overview of the fromWalletAdapter function

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

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

```ts
function fromWalletAdapter(signer): SolanaSigner;
```

Defined in: [packages/wallet-apis/src/adapters/fromWalletAdapter.ts:29](https://github.com/alchemyplatform/aa-sdk/blob/main/packages/wallet-apis/src/adapters/fromWalletAdapter.ts#L29)

Adapts a wallet that signs `VersionedTransaction` objects into a [SolanaSigner](../../interfaces/SolanaSigner).

Works with `useWallet()` from `@solana/wallet-adapter-react` and injected
browser wallet providers (e.g. `window.phantom.solana`). Handles the
`Uint8Array` ↔ `VersionedTransaction` conversion internally.

For `@solana/kit` signers, use [fromKitSigner](fromKitSigner). For raw Ed25519
keypairs, use [fromKeypair](fromKeypair). For wallet-standard wallets, use
[fromWalletStandard](fromWalletStandard).

Requires `@solana/web3.js` as a peer dependency.

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `signer`
      </td>

      <td>
        [`WalletAdapterSigner`](../interfaces/WalletAdapterSigner)
      </td>

      <td>
        The wallet adapter signer
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`SolanaSigner`](../../interfaces/SolanaSigner)

A SolanaSigner compatible with `createSmartWalletClient`