Solana local keypair
For local development and server-side agents.network parameter ("devnet", "testnet", "mainnet-beta") determines which Solana cluster the wallet targets.
If the keypair file does not exist or contains invalid data, createLocalWallet throws with a descriptive error.
EVM private key
For local development and server-side agents.ChainInfo object with the chain’s numeric ID and name. The private key should be a hex string starting with 0x. The wallet supports EIP-712 typed signatures used by the EVM payment handler.
If the private key is malformed, the factory throws.
Crossmint custodial
For managed wallets where you do not handle private keys directly. Crossmint provides a custodial wallet API.Squads multisig
For DAOs and shared treasuries using Squads Protocol on Solana.Ledger hardware
For high-security signing with a Ledger hardware wallet.accountIndex selects which account on the Ledger device to use.
Requires the Ledger device to be connected and unlocked with the appropriate app open. If the device is not available, the factory throws.
Passing wallets to handlers
All wallets follow the same pattern once created:Further reading
- Payment Handlers — How to register handlers with the fetch wrapper.
- Wallets & Signing — How the wallet adapter pattern works.