Building an AI Agent with Secure Wallet Management
This guide walks through a simple agent setup that uses Open Wallet Standard (OWS) for wallet storage and SKALE CLI for transaction prep and BITE encryption. The result is an agent that can generate wallets, prepare transactions, and submit encrypted transactions on SKALE Base.In This Guide
You’ll build an agent that:- Creates a secure, encrypted wallet using OWS
- Generates a new Ethereum address for SKALE transactions
- Prepares transaction data using SKALE CLI
- Encrypts transactions using BITE encryption
- Operates without exposing private keys to the agent
Prerequisites
- Node.js 18+ and npm
- SKALE CLI installed:
npm install -g @skalenetwork/cli - Open Wallet Standard CLI:
npm install -g @open-wallet-standard/core - Access to SKALE Base (BITE-enabled chain)
Architecture Overview
Step 1: Install Dependencies
Install both CLIs globally:Step 2: Create Agent Wallet
Create a new wallet for your agent using OWS:The wallet is stored encrypted at
~/.ows/wallets/skale-agent. The agent never has direct access to the private key.Get the Wallet Address
Retrieve the Ethereum address for SKALE:eip155:1 entry under your skale-agent wallet. The address will be formatted like:
Step 3: Fund the Wallet
Fund the wallet on your target chain before preparing the transaction. Forskale-base-sepolia, you can use the SKALE Base Sepolia faucet or transfer test funds from another wallet.
Verify the balance:
