pub fn load_wallet(args: &WalletArgs) -> Result<Wallet, String>Expand description
Load a wallet from an environment variable (priority) or file (fallback).
The env var is expected to contain a base58-encoded 64-byte keypair.
The file is expected to be in Solana CLI JSON byte-array format ([174, 47, ...]).
ยงErrors
Returns a human-readable error string if neither source yields a valid wallet.