function fromWalletAdapter(signer): SolanaSigner;Defined in: packages/wallet-apis/src/adapters/fromWalletAdapter.ts:29
Adapts a wallet that signs VersionedTransaction objects into a 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. For raw Ed25519
keypairs, use fromKeypair. For wallet-standard wallets, use
fromWalletStandard.
Requires @solana/web3.js as a peer dependency.
| Parameter | Type | Description |
|---|---|---|
| The wallet adapter signer |
A SolanaSigner compatible with createSmartWalletClient