solana-multi-wallet-kit
Version:
Universal Solana Wallet Kit for React Native, Web, and Node.js
21 lines (20 loc) • 583 B
TypeScript
/**
* Create a Solana wallet from a seed phrase (mnemonic).
*
* @param {string} phrase - The BIP39 seed phrase.
* @param {number} index - The derivation index (default is 0).
* @returns {object} Wallet object with public and secret keys.
*/
interface NativeCurrency {
name: string;
symbol: string;
decimals: number;
}
export interface SolanaWallet {
address: string;
publicKey: string;
secretKey: string;
nativeCurrency: NativeCurrency;
}
export declare const createWalletFromSeedPhrase: (phrase: string, index?: number) => SolanaWallet;
export {};