Wallet that loads a private key from an environment variable.
The key must be hex-encoded (with or without 0x prefix). The address is derived from the public key at module load time.
Configuration
# Set the env var
export RAXOL_WALLET_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
# Use in agent config
wallet = Raxol.Payments.Wallets.EnvCustom Env Var
# Override at compile time
defmodule MyWallet do
use Raxol.Payments.Wallets.Env, env_var: "MY_WALLET_KEY"
end