CARV
CARVPlayPortalProtocol
  • Overview
    • Introducing CARV
  • SVM - AI AGENTIC CHAIN
    • Introduction
      • Architecture
      • AI Agent in TEE environment
      • CARV Verifier Nodes
    • Quick Start
      • Bridge Token
      • Explorer
      • Command line tool
      • Reading from CARV SVM Network
      • Writing to the Network
      • Network Info
  • D.A.T.A. - AI FRAMEWORK
    • Introduction
      • DeepSeek Integration
      • D.A.T.A's Core Features
      • How It Empowers AI Agents
      • Driving the Future of AI and Blockchain
      • Leveraging CARV SVM Chain for Privacy and Trustless Data Sharing
    • Quick Start Guide
    • Architecture
    • ERC-7231 (CARV ID)
    • Examples
      • On-Chain Insights
    • Getting Started
      • D.A.T.A Framework Plugin for Eliza
    • Use Cases and Implementation
      • Getting On-Chain Data for AI Agents
      • What's Coming with the D.A.T.A Framework
    • API Documentation
      • News
      • On-chain Data SQL Query
        • Ethereum Schema
        • Bitcoin Schema
        • Base Schema
        • Solana Schema
      • On-chain Data SQL Query by LLM
      • Token Info and Price
      • User Balance by Twitter ID
      • User Balance by Discord ID
  • CARV Ecosystem
    • CARV Play
      • Portal Access
      • Integration Guide
        • .Play Name Service Integration
        • API-Verified Quest (RESTFUL)
        • API-Verified Quest (GraphQL)
        • CARV ID OAuth 2.0
        • CARV ID Telegram SDK
      • Smart Contracts & Security
    • MOFF Bot & Customer Data Platform
    • CARV Account
      • ERC 7231
    • Verifier Nodes
      • How to Purchase Nodes
      • Buyback Program
      • Why Verifier Nodes
      • How do Verifier Nodes Work
        • CARV/veCARV Token
        • CARV Vault
        • CARV NFT License
        • CARV Protocol Service
        • Trusted Execution Environment (TEE)
        • Verifier Node
        • Attestation
        • Delegation
        • Rewards
        • SGX Attestation Verification
      • Verifier Node Sale Dynamics
      • Smart Contract Addresses
      • License Key (NFT)
      • Delegation
      • Node Rewards
      • Join Mainnet Verifier Nodes
        • Prerequisites
        • Delegation Tutorial
        • Operating a Verifier Node
          • Running in VPS
          • Running in CLI
            • Using Source Code
            • Using Docker
            • Gasless Server API
          • Running in Desktop App
      • Explorer
      • FAQ
        • Node Sale
        • Node Operation
  • CARV LABS
    • Introduction
    • Working with CARV Labs
  • Tokenomics
    • Utility
      • veCARV(s)
    • Distribution & Vesting
  • DECENTRALIZED GOVERNANCE
    • ⚔️Universal Guardian Program
    • 📔DAO Governance
    • 🌏Community Programs & Activities
  • Resources
    • 🗜️Writings
    • 🗞️CARV in the News
    • 🫶Social & Community Links
    • 🅰️Brand Guideline
    • 💰Job Openings
Powered by GitBook
On this page

Last updated 4 months ago

Getting Started with the D.A.T.A Framework Plugin for Eliza

The D.A.T.A Framework currently is designed as a plugin for the Eliza AI framework, providing AI agents with the ability to interact with both on-chain and off-chain data seamlessly. By integrating the D.A.T.A plugin into Eliza, developers can enhance their agents with real-time data-driven decision-making capabilities, including intelligent on-chain actions, cross-chain insights, and off-chain context.

Here’s a guide to get you started with setting up and using the D.A.T.A Framework plugin within Eliza.


1. Installing the D.A.T.A Plugin

To begin using the D.A.T.A Framework in your Eliza-powered AI agent, you first need to install the D.A.T.A plugin.

Installation Steps:

  1. Install the D.A.T.A Plugin: Run the following command to install the plugin in your Eliza project:

  2. Import the Plugin: In your agent’s code, you will need to import the D.A.T.A plugin to enable its functionality.


2. Configuring the D.A.T.A Plugin in Eliza

Once the D.A.T.A plugin is installed, you can configure it within the AgentRuntime. The plugin will be conditionally injected based on the availability of necessary credentials (e.g., API keys).

Basic Setup Example:

  • onchainDataPlugin is added only if the D.A.T.A API key (D_A_T_A_API_KEY) is provided in the environment.

  • The plugin is integrated into the plugins array and executed along with other necessary plugins like bootstrapPlugin and confluxPlugin.


3. Using the D.A.T.A Plugin in Your AI Agent

Once the D.A.T.A plugin is integrated, the plugin will enhance your Eliza agents with the following capabilities:

  • Providers: Fetch on-chain and off-chain data (e.g., blockchain activity, wallet balances, user tags, etc.).

  • Evaluators: Analyze fetched data and add actionable insights, such as detecting whales, traders, or identifying suspicious activity.

  • Actions: Trigger actions based on insights—like sending alerts or executing on-chain transactions (e.g., airdrops or transfers).

For more details you can check .

pnpm install @elizaos/plugin-d.a.t.a
import { onchainDataPlugin } from "@elizaos/plugin-d.a.t.a";
javascriptCopy codereturn new AgentRuntime({
    databaseAdapter: db,
    token,
    modelProvider: character.modelProvider,
    evaluators: [],
    character,
    plugins: [
        getSecret(character, "D_A_T_A_API_KEY") ? onchainDataPlugin : null,  // Conditionally add D.A.T.A plugin
        bootstrapPlugin,
        // Other plugins
    ].filter(Boolean),
    providers: [],
    actions: [],
    services: [],
    managers: [],
    cacheManager: cache,
    fetch: logFetch,
});
  1. D.A.T.A. - AI FRAMEWORK
  2. Getting Started

D.A.T.A Framework Plugin for Eliza

PreviousGetting StartedNextUse Cases and Implementation
https://github.com/carv-protocol/eliza-d.a.t.a