⛓️ Alchemy
Alchemy — blockchain data, NFTs, token balances, transactions, gas prices, and webhooks.
Requirements
| Variable | Required | Description |
|---|
| INLINECODE0 | ✅ | Alchemy API key |
Quick Start
CODEBLOCK0
Output Format
All commands output JSON by default.
Script Reference
| Script | Description |
|---|
| INLINECODE1 | 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
⛓️ 炼金术
炼金术 — 区块链数据、NFT、代币余额、交易、Gas费用和Webhooks。
环境要求
| 变量 | 必需 | 描述 |
|---|
| ALCHEMYAPIKEY | ✅ | 炼金术API密钥 |
快速开始
bash
获取ETH余额
python3 {{baseDir}}/scripts/alchemy.py get-balance --address <值>
获取ERC-20代币余额
python3 {{baseDir}}/scripts/alchemy.py get-token-balances --address <值>
通过哈希获取交易
python3 {{baseDir}}/scripts/alchemy.py get-transaction --hash <值>
通过区块号获取区块
python3 {{baseDir}}/scripts/alchemy.py get-block --block latest
获取地址的NFT
python3 {{baseDir}}/scripts/alchemy.py get-nfts --address <值>
获取NFT元数据
python3 {{baseDir}}/scripts/alchemy.py get-nft-metadata --contract <值> --token-id <值>
获取代币元数据
python3 {{baseDir}}/scripts/alchemy.py get-token-metadata --contract <值>
获取当前Gas价格
python3 {{baseDir}}/scripts/alchemy.py get-gas-price
获取最新区块号
python3 {{baseDir}}/scripts/alchemy.py get-block-number
获取事件日志
python3 {{baseDir}}/scripts/alchemy.py get-logs --address <值> --from-block 0x0 --to-block latest --topics <值>
获取地址的资产转账记录
python3 {{baseDir}}/scripts/alchemy.py get-asset-transfers --address <值> --category external,erc20
获取NFT地板价
python3 {{baseDir}}/scripts/alchemy.py get-floor-price --contract <值>
输出格式
所有命令默认输出JSON格式。
脚本参考
| 脚本 | 描述 |
|---|
| {baseDir}/scripts/alchemy.py | 主命令行工具 — 所有命令集成于一个工具 |
致谢
由
M. Abidi 构建 |
agxntsix.ai
YouTube |
GitHub
属于面向OpenClaw代理的
AgxntSix技能套件 的一部分。
📅 需要为您的业务搭建OpenClaw? 预约免费咨询