Some checks failed
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
API Endpoint Tests / test-api-endpoints (push) Has been cancelled
- Updated marketplace commands: `marketplace --action` → `market` subcommands - Updated wallet commands: direct flags → `wallet` subcommands - Updated AI commands: `ai-submit`, `ai-status` → `ai submit`, `ai status` - Updated blockchain commands: `chain` → `blockchain info` - Standardized command structure across all workflow files - Affected files: MULTI_NODE_MASTER_INDEX.md, TEST_MASTER_INDEX.md, multi-node-blockchain-marketplace
40 lines
1.4 KiB
Bash
Executable File
40 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# Wallet Creation Script for AITBC
|
|
# This script creates a new wallet on the aitbc follower node using enhanced CLI
|
|
|
|
set -e # Exit on any error
|
|
|
|
echo "=== AITBC Wallet Creation (Enhanced CLI) ==="
|
|
|
|
echo "1. Pre-creation verification..."
|
|
echo "=== Current wallets on aitbc ==="
|
|
/opt/aitbc/aitbc-cli wallet list
|
|
|
|
echo "2. Creating new wallet on aitbc..."
|
|
/opt/aitbc/aitbc-cli wallet create aitbc-user $(cat /var/lib/aitbc/keystore/.password)
|
|
|
|
# Get wallet address using CLI
|
|
WALLET_ADDR=$(/opt/aitbc/aitbc-cli wallet balance aitbc-user 2>/dev/null | grep "Address:" | awk '{print $2}' || echo "")
|
|
echo "New wallet address: $WALLET_ADDR"
|
|
|
|
# Verify wallet was created successfully using CLI
|
|
echo "3. Post-creation verification..."
|
|
echo "=== Updated wallet list ==="
|
|
/opt/aitbc/aitbc-cli wallet list | grep aitbc-user || echo "Wallet not found in list"
|
|
|
|
echo "=== New wallet details ==="
|
|
/opt/aitbc/aitbc-cli wallet balance aitbc-user
|
|
|
|
echo "=== All wallets summary ==="
|
|
/opt/aitbc/aitbc-cli wallet list
|
|
|
|
echo "4. Cross-node verification..."
|
|
echo "=== Network status (local) ==="
|
|
/opt/aitbc/aitbc-cli network status 2>/dev/null || echo "Network status not available"
|
|
|
|
echo "✅ Wallet created successfully using enhanced CLI!"
|
|
echo "Wallet name: aitbc-user"
|
|
echo "Wallet address: $WALLET_ADDR"
|
|
echo "Wallet is ready to receive AIT coins."
|
|
echo "All operations used enhanced CLI capabilities."
|