Open
Conversation
wallet create now generates both EVM and Solana keypairs. Adds Solana config keys (solana_wallet_key_file, solana_wallet_address), resolve function, and updates wallet address/qr commands to support both chains. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Route send command to Solana path when network is solana-*. Supports native SOL transfers with optional gas sponsorship via Alchemy's alchemy_requestFeePayer RPC method. Refactors send into separate EVM and Solana modules for clarity. - src/lib/solana-tx.ts: shared Solana transaction builder with sponsorship support, reusable by future Solana commands - src/commands/send/: split into evm.ts, solana.ts, shared.ts - src/lib/networks.ts: add isSolanaNetwork() helper - src/lib/validators.ts: add validateSolanaAddress() - src/lib/errors.ts: add errSolanaTransactionFailed() Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wallet create: Generates both EVM and Solana (Ed25519) keypairs in a single command using@solana/kit. Stores Solana secret key in standard JSON array format alongside EVM keys.wallet addressandwallet qrupdated to support both chains.sendcommand auto-detects Solana networks (-n solana-devnet) and routes to a Solana-specific code path. Builds native SOL transfer instructions via@solana-program/system.alchemy_requestFeePayerRPC method for fee payer sponsorship. Uses the same--gas-sponsored --gas-policy-idflags as EVM.send.tsintosend/index.ts,send/evm.ts,send/solana.ts, andsend/shared.tsfor maintainability.src/lib/solana-tx.tsprovides reusable transaction building, sponsorship, signing, and confirmation polling for future Solana commands (swap, bridge, etc.).isSolanaNetwork()in networks.ts,validateSolanaAddress()in validators.ts,resolveSolanaWalletKey()in resolve.ts,errSolanaTransactionFailed()in errors.tsNew dependencies
@solana/kit— Solana SDK for keypair generation, transaction building, and signing@solana-program/system— typed system program instructions (SOL transfer)Test plan
alchemy wallet creategenerates both EVM and Solana keypairsalchemy wallet addressshows both EVM and Solana addressesalchemy wallet qrshows EVM QR,alchemy wallet qr --solanashows Solana QRalchemy send <solana-addr> 0.001 -n solana-devnetsends SOL (wallet-paid)alchemy send <solana-addr> 0.001 -n solana-devnet --gas-sponsored --gas-policy-id <id>sends SOL (sponsored)alchemy send <evm-addr> 0.001 -n eth-sepoliastill works (EVM path unchanged)alchemy config listshows Solana wallet fields🤖 Generated with Claude Code