ChainBrain Framework CLI v1
Quickstart guide to the OnChainBrain Framework CLI v1
Overview
The OnChainBrain Framework enables developers to create and manage intelligent agents through a command-line interface. This open-source solution integrates with the OnChainBrain API, facilitating seamless interaction with your deployed AI agents.
β¨ Core Features
Blockchain Integration: Launch intelligent agents on Solana
Natural Language: Communicate with agents using everyday language
Data Analytics: Access live blockchain metrics and statistics
Pattern Recognition: Monitor token movements and market trends
Advanced Queries: Perform sophisticated blockchain analysis
Data Provider: Direct integration with Bitquery for real-time data
π‘ Technical Capabilities
Asset Analytics: Extract detailed token information and metrics
Market Intelligence: Monitor market movements and trading patterns
Extensible Design: Build and integrate custom functionality
Universal Support: Works across all Node.js-supported platforms
π§ Setup Guide
System Requirements
Node.js version 16 or higher
Package manager (npm/yarn)
Bitquery API credentials
Additional requirements listed in
.env.example
Setup Process
Get the code:
Install required packages:
Configure environment: Create a
.envfile with these parameters:Compile the source:
π Framework Commands
Agent Interaction
Example:
Market Analysis Commands
Token Trends:
Holder Analysis:
Example:
Market Metrics:
Example:
Buyer Analysis:
Example:
Trading Operations:
π Technology Stack
Core Dependencies
Package
Version
Purpose
@solana/web3.js
^1.98.0
Solana blockchain connectivity
dotenv
^16.4.7
Environment configuration
firebase
^11.1.0
Data persistence and management
node-fetch
^3.3.2
Network request handling
openai
^4.77.3
AI processing capabilities
bs58
^6.0.0
Address encoding utilities
form-data
^4.0.1
Data structure handling
punycode
^2.3.1
Unicode processing
Development Tools
Package
Version
Purpose
typescript
^5.7.3
Type-safe development
ts-node
^10.9.2
TypeScript execution
tsconfig-paths
^4.2.0
Module resolution
βοΈ Available Scripts
npm run build: Compile TypeScript codenpm run interact-ocb-agent: Agent communicationnpm run ocb-trade: Execute trading operations
π Architecture Overview
Data Storage: Firebase backend integration
Market Data: Bitquery data provider integration
Command Processing: Advanced query parsing system
Extensibility: Modular architecture design
π οΈ How to Run the OnChainBrain Framework
Ensure all dependencies are installed using
npm installSet up environment variables by configuring the
.envfileBuild the project with:
Interact with your agent using:
Analyze blockchain data using:
Execute trading operations via:
Last updated
