360 Secure SkillHub
360 安全技能中心

Moralis

这是基于Moralis API的Python CLI工具,需配置MORALIS_API_KEY使用。核心功能含查询钱包余额、交易记录、NFT信息、DeFi持仓、代币价格,还支持域名解析、区块查询等。通过命令行传参调用,输出默认JSON,适合Web3开发者或用户快速获取各类链上数据。

aiwithabidi
aiwithabidi
热度 50.07
最近更新 2026-05-10 17:41:20
分类:数据依赖:代码执行 / 第三方 API应用场景:数据处理 / 财务 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add moralis
Metadata
name
moralis
description
Moralis — Web3 data, token prices, wallet history, NFTs, DeFi positions, and blockchain events.
homepage
https://www.agxntsix.ai
license
MIT
compatibility
Python 3.10+ (stdlib only — no dependencies)
metadata
{"openclaw":{"emoji":"🌐","requires":{"env":["MORALIS_API_KEY"]},"primaryEnv":"MORALIS_API_KEY","homepage":"https://www.agxntsix.ai"}}

🌐 Moralis

Moralis — Web3 data, token prices, wallet history, NFTs, DeFi positions, and blockchain events.

Requirements

Variable Required Description
MORALIS_API_KEY ✅ Moralis API key

Quick Start

# Get native balance
python3 {{baseDir}}/scripts/moralis.py get-native-balance --address <value> --chain "eth"

# Get ERC-20 token balances
python3 {{baseDir}}/scripts/moralis.py get-token-balances --address <value> --chain "eth"

# Get wallet transactions
python3 {{baseDir}}/scripts/moralis.py get-transactions --address <value> --chain "eth"

# Get token price
python3 {{baseDir}}/scripts/moralis.py get-token-price --address <value> --chain "eth"

# Get NFTs for wallet
python3 {{baseDir}}/scripts/moralis.py get-nfts --address <value> --chain "eth"

# Get NFT metadata
python3 {{baseDir}}/scripts/moralis.py get-nft-metadata --address <value> --token-id <value> --chain "eth"

# Get NFT transfers
python3 {{baseDir}}/scripts/moralis.py get-nft-transfers --address <value> --chain "eth"

# Get token transfers
python3 {{baseDir}}/scripts/moralis.py get-token-transfers --address <value> --chain "eth"

# Get DeFi positions
python3 {{baseDir}}/scripts/moralis.py get-defi-positions --address <value> --chain "eth"

# Resolve ENS/Unstoppable domain
python3 {{baseDir}}/scripts/moralis.py resolve-domain --domain <value>

# Search token by symbol
python3 {{baseDir}}/scripts/moralis.py search-token --symbol <value>

# Get block details
python3 {{baseDir}}/scripts/moralis.py get-block --block <value> --chain "eth"

Output Format

All commands output JSON by default.

Script Reference

Script Description
{baseDir}/scripts/moralis.py Main CLI — all commands in one tool

Credits

Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.

📅 Need help setting up OpenClaw for your business? Book a free consultation