Moralis Data API for Openclaw

A comprehensive toolset for AI agents to access real-time and historical on-chain data across EVM and Solana networks.

novnski
v1.3.2
Feb 28, 2026
1
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install moralis-data-api

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install moralis-data-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Moralis Data API?

The Moralis Data API skill provides a high-performance interface for Openclaw Skills to interact with over 40 EVM blockchains and Solana. It enables AI agents to retrieve deep on-chain data, such as real-time token prices, wallet net worth, historical transactions, and NFT rarity, without needing to manage complex node infrastructure.

By integrating this skill, developers can build agents capable of financial analysis, portfolio tracking, and market discovery. The skill handles the complexities of blockchain data types, such as converting hex block numbers and managing large integer balances, ensuring that agents receive clean, actionable information.

Moralis Data API Use Cases

  • Retrieving wallet balances and transaction history for automated portfolio audits.
  • Monitoring real-time token prices and DEX liquidity pairs for trading insights.
  • Accessing NFT metadata, floor prices, and owner history for collection analysis.
  • Calculating wallet profitability (P&L) and analyzing complex DeFi protocol positions.
  • Identifying trending tokens and market movers using specialized discovery endpoints.

How Moralis Data API Works

  1. The AI agent identifies a request for blockchain data, such as a wallet balance or token price query.
  2. The skill validates the presence of the required MORALIS_API_KEY environment variable to ensure authorized access.
  3. Based on the target address (EVM hex or Solana base58), the skill selects the appropriate base URL and API gateway.
  4. A curl request is executed against the specific Moralis endpoint, passing the API key through the X-API-Key header.
  5. The returned JSON data is parsed and formatted according to defined rules, such as converting timestamps to ISO strings and block numbers to decimal format.

Moralis Data API Setup

First, obtain a Moralis API key from the Moralis admin dashboard. Ensure you have curl installed on your system.

Check if your environment is already configured:

[ -n "$MORALIS_API_KEY" ] && echo "API key is set" || echo "API key is NOT set"

If the key is missing, create a .env file in your project root and add your credentials:

echo "MORALIS_API_KEY=your_api_key_here" >> .env

Verify the setup by running a test query for a wallet balance:

curl "https://deep-index.moralis.io/api/v2.2/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/balance?chain=0x1" \
  -H "X-API-Key: $MORALIS_API_KEY"

Moralis Data API Data Schema & Taxonomy

The skill organizes data across several core categories, ensuring consistency in how Openclaw Skills process blockchain primitives:

Data Type Standard Format Notes
Block Numbers Decimal String Automatically converted from hex for readability.
Timestamps ISO 8601 Standardized date format for easy parsing.
Balances String (BigInt) Maintained as strings to prevent precision loss in JavaScript.
Pagination Cursor Object Includes page, cursor, and result fields for large datasets.
Chain IDs Hex (0x1) Standardized EVM chain identifiers.

Moralis Data API Advanced Features

  • Multi-chain support for 40+ EVM networks including Ethereum, Polygon, BSC, Arbitrum, and Base.
  • Native Solana API integration for retrieving SPL tokens and SOL account metadata.
  • Advanced DeFi insight endpoints that provide protocol-specific position summaries and net worth calculations.
  • Entity labeling system to identify and search for exchange wallets, venture funds, and known whales.
  • Market discovery tools for tracking trending tokens, top gainers, losers, and price movements across categories.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*