-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy path.env.sample
More file actions
27 lines (23 loc) · 1.22 KB
/
.env.sample
File metadata and controls
27 lines (23 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Hiero SDK Go - Environment Variables
# Copy this file to .env and fill in your values, then run: source .env
#
# Get your credentials from https://portal.hedera.com/
#
# IMPORTANT: Make sure OPERATOR_ID and OPERATOR_KEY are from the SAME account!
# If you have multiple accounts (e.g., one ECDSA and one ED25519), ensure you use
# the matching pair. Mismatched credentials will cause authentication failures.
# Your account ID (format: 0.0.xxxxx)
export OPERATOR_ID="0.0.YOUR_ACCOUNT_ID"
# Your private key corresponding to OPERATOR_ID above
# Supported formats: hex string (no 0x prefix), DER-encoded, or PEM-prefixed
export OPERATOR_KEY="YOUR_PRIVATE_KEY"
# Network to connect to: testnet, previewnet, or localhost
# For local development with Solo, use "localhost"
# For mainnet, use CONFIG_FILE with a mainnet configuration
export HEDERA_NETWORK="testnet"
# Optional: Path to a JSON config file (alternative to env vars above)
# If set, network config is read from this file
# See sdk/client-config-with-operator.json for format
# NOTE: CONFIG_FILE is only used when OPERATOR_ID, OPERATOR_KEY, and HEDERA_NETWORK are ALL unset.
# Environment variables take precedence over config file settings.
# export CONFIG_FILE="./my-config.json"