360 Secure SkillHub
360 安全技能中心

Moralis

通过单一 Python CLI 调用 Moralis 接口,查询原生币与 ERC-20 余额、代币价格、钱包交易与转账记录、NFT 元数据与转账、DeFi 持仓、ENS/Unstoppable 域名解析、代币搜索和区块详情,结果以 JSON 输出,需配置 MORALIS_API_KEY。

aiwithabidi
aiwithabidi
热度 49.91
最近更新 2026-05-10 17:41:20
分类:数据依赖:代码执行 / 第三方 API应用场景: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