Skip to content
Alchemy Logo

fromWalletAdapter (Solana)

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 Uint8ArrayVersionedTransaction 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.

ParameterTypeDescription

signer

WalletAdapterSigner

The wallet adapter signer

SolanaSigner

A SolanaSigner compatible with createSmartWalletClient

Was this page helpful?