Initialize Wallet from Environment
ordnet_wallet_init_envInitialize a Bitcoin SV wallet by reading the WIF from an environment variable, avoiding direct key exposure. Returns address and balance.
Instructions
Initialize wallet from environment variable (highest security tier).
Reads WIF from environment variable instead of passing it directly. Recommended for production use.
Args:
envVarName (string): Environment variable name (default: ORDNET_WIF)
Returns: { address: string, balanceSatoshis: number }
Example: export ORDNET_WIF="L1a2b3c4..." ordnet_wallet_init_env({}) → Wallet initialized
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envVarName | No | Environment variable name containing the WIF (default: ORDNET_WIF) | ORDNET_WIF |