Skip to content

v1.1.5

Choose a tag to compare

@roger-gan roger-gan released this 13 Mar 10:24
· 23 commits to main since this release
db5f3c1

What's Changed

Agent-Wallet SDK Alignment

This release completes the migration to the @bankofai/agent-wallet SDK (v2.2.0), unifying all wallet and environment handling under a single, robust layer.

Static Mode Support

The server now fully leverages the SDK's built-in Static Mode:

  • Environment variables (AGENT_WALLET_PRIVATE_KEY, AGENT_WALLET_MNEMONIC, etc.) are now resolved entirely by the agent-wallet SDK layer.
  • Backward-compatible variables (TRON_PRIVATE_KEY, TRON_MNEMONIC) continue to be supported via the server's environment mapping.
  • The server gracefully detects unconfigured wallets and automatically hides wallet-dependent tools — no explicit wallet configuration is needed for read-only usage.

Environment Variables Reference

Variable Description
AGENT_WALLET_PASSWORD Enable Encrypted Storage Mode (recommended)
AGENT_WALLET_DIR Directory for keystore (default: ~/.agent-wallet)
AGENT_WALLET_PRIVATE_KEY Static Mode — provide a raw private key
AGENT_WALLET_MNEMONIC Static Mode — provide a BIP-39 mnemonic
AGENT_WALLET_MNEMONIC_ACCOUNT_INDEX HD wallet account index (default: 0)
TRON_PRIVATE_KEY Legacy alias for AGENT_WALLET_PRIVATE_KEY
TRON_MNEMONIC Legacy alias for AGENT_WALLET_MNEMONIC

Upgrade Notes

  • No breaking changes. Existing configurations using TRON_PRIVATE_KEY or TRON_MNEMONIC continue to work.
  • If you were using a 2.2.0-beta.* version of @bankofai/agent-wallet, please update to ^2.2.0.
  • Run npm install after updating to sync the lockfile.