loadKeypairFromEnvironment
Load a CryptoKeyPair from an environment variable
(i.e. those generated by the solana-keygen command)
Note: for base58 encoded keypairs in environment variables use loadKeypairFromEnvironmentBase58
Type Parameters
| Type Parameter |
|---|
TName extends keyof ProcessEnv |
Parameters
| Parameter | Type | Description |
|---|---|---|
variableName | TName | environment variable name accessible via process.env[variableName] |
Returns
Promise<CryptoKeyPair>