Load Wallet from File
Loads a wallet (more specifically a KeyPairSigner
) from a file. The file should be in the same format as files created by the solana-keygen
command.
Returns: Promise<KeyPairSigner>
const wallet = await connection.loadWalletFromFile(keyPairPath);
Options
keyPairPath
:string
- Path to load keypair from file
See also: Create Wallet, Load Wallet from Environment
Last updated on