block-chain-data-service
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "block-chain-data-service":https://skillpi.com/zh/skills/deepskill-c877b88aba1f238ade77222136a1e921d115679d0b2de75f0a195ec503f65cac。安装前核对上游来源和版本:https://skillhub.cn/skills/org-rn88lg3j/block-chain-data-service。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Vitruveo MCP Server 是一个为 Vitruveo 网络提供只读区块链数据访问的模型上下文协议服务器,面向需要以只读方式让 AI 代理访问区块链数据的场景。
介绍来源: third_party · org-rn88lg3j · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- Vitruveo MCP Server 是一个为 Vitruveo 网络提供只读区块链服务的模型上下文协议服务器,适用于AI代理访问区块链数据。
- 限制与区别
- 1. **API 密钥是必需的**,无密钥时必须通过 AskUserQuestion 询问用户 2. **禁止**在缺少 API 密钥时自行搜索或编造数据
- 实测状态
- 未测试
文件浏览
Frontmatter
name: 区块链数据服务
description: Vitruveo MCP Server 是一个为 Vitruveo 网络提供只读区块链服务的模型上下文协议服务器,适用于AI代理访问区块链数据。
version: 1.0.0
slug: blockchain-data-service
displayName: 区块链数据服务
summary: Vitruveo MCP Server 是一个为 Vitruveo 网络提供只读区块链服务的模型上下文协议服务器,适用于AI代理访问区块链数据。
license: MIT区块链数据服务
Vitruveo MCP Server 是一个为 Vitruveo 网络提供只读区块链服务的模型上下文协议服务器,适用于AI代理访问区块链数据。
⚠️ 强制要求:API 密钥
此 Skill 必须配置 API 密钥才能使用。
- 首次使用时,如果
.env中没有XBY_APIKEY,必须使用 AskUserQuestion 工具向用户询问 API 密钥 - 拿到用户提供的密钥后,调用
scripts.config.set_api_key(api_key)保存,然后继续处理 - 获取 API 密钥:https://xiaobenyang.com
- 禁止在缺少 API 密钥时自行搜索或编造数据
工作流程(必须遵守)
你(大模型)是路由层,负责理解用户意图、选择工具、提取参数。代码只负责调用API。
用户输入 → 你选择工具 → 提取该工具需要的参数 → 调用 scripts.tools 中的函数 → 返回结果给用户
步骤
- 检查 API 密钥:如果
scripts.config.settings.api_key为空,使用 AskUserQuestion 询问用户,拿到后调用scripts.config.set_api_key(key)保存 - 选择工具:根据用户意图从下方工具列表中选择对应的工具函数
- 提取参数:根据选中的工具,提取该工具需要的参数
- 调用工具:使用关键字参数调用
scripts.tools中的函数,例如scripts.tools.search_schools(score='520', province='北京', category='综合') - 返回结果:将工具返回的
raw数据整理后展示给用户
工具选择规则
根据用户意图选择对应的工具函数:
| 用户意图 | 工具函数 |
|---|---|
| Get core contract addresses | scripts.tools.get_core_contracts |
| Get information about an EVM network | scripts.tools.get_chain_info |
| Get a list of supported EVM networks | scripts.tools.get_supported_networks |
| Get a block by its block number | scripts.tools.get_block_by_number |
| Get the latest block from the EVM | scripts.tools.get_latest_block |
| Get the native token balance (ETH, MATIC, etc.) for an address | scripts.tools.get_balance |
| Get the ERC20 token balance of an Ethereum address | scripts.tools.get_erc20_balance |
| Get the balance of an ERC20 token for an address | scripts.tools.get_token_balance |
| Get detailed information about a specific transaction by its hash. Includes sender, recipient, value, data, and more. | scripts.tools.get_transaction |
| Get a transaction receipt by its hash | scripts.tools.get_transaction_receipt |
| Estimate the gas cost for a transaction | scripts.tools.estimate_gas |
| Read data from a smart contract by calling a view/pure function. This doesn't modify blockchain state and doesn't require gas or signing. | scripts.tools.read_contract |
| Check if an address is a smart contract or an externally owned account (EOA) | scripts.tools.is_contract |
| Get comprehensive information about an ERC20 token including name, symbol, decimals, total supply, and other metadata. Use this to analyze any token on EVM chains. | scripts.tools.get_token_info |
| Get ERC20 token balance for an address | scripts.tools.get_token_balance_erc20 |
| Get detailed information about a specific NFT (ERC721 token), including collection name, symbol, token URI, and current owner if available. | scripts.tools.get_nft_info |
| Check if an address owns a specific NFT | scripts.tools.check_nft_ownership |
| Get the metadata URI for an ERC1155 token (multi-token standard used for both fungible and non-fungible tokens). The URI typically points to JSON metadata about the token. | scripts.tools.get_erc1155_token_uri |
| Get the total number of NFTs owned by an address from a specific collection. This returns the count of NFTs, not individual token IDs. | scripts.tools.get_nft_balance |
| Get the balance of a specific ERC1155 token ID owned by an address. ERC1155 allows multiple tokens of the same ID, so the balance can be greater than 1. | scripts.tools.get_erc1155_balance |
如果参数不完整,使用 AskUserQuestion 向用户询问缺失的参数。
工具函数说明
scripts.tools.get_core_contracts
工具描述:Get core contract addresses
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|
scripts.tools.get_chain_info
工具描述:Get information about an EVM network
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|
scripts.tools.get_supported_networks
工具描述:Get a list of supported EVM networks
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|
scripts.tools.get_block_by_number
工具描述:Get a block by its block number
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| blockNumber | number | true | The block number to fetch |
scripts.tools.get_latest_block
工具描述:Get the latest block from the EVM
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|
scripts.tools.get_balance
工具描述:Get the native token balance (ETH, MATIC, etc.) for an address
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| address | string | true | The wallet address or ENS name (e.g., '0x1234...' or 'vitalik.eth') to check the balance for |
scripts.tools.get_erc20_balance
工具描述:Get the ERC20 token balance of an Ethereum address
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| address | string | true | The Ethereum address to check | |
| tokenAddress | string | true | The ERC20 token contract address |
scripts.tools.get_token_balance
工具描述:Get the balance of an ERC20 token for an address
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| tokenAddress | string | true | The contract address or ENS name of the ERC20 token (e.g., '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' for USDC or 'uniswap.eth') | |
| ownerAddress | string | true | The wallet address or ENS name to check the balance for (e.g., '0x1234...' or 'vitalik.eth') |
scripts.tools.get_transaction
工具描述:Get detailed information about a specific transaction by its hash. Includes sender, recipient, value, data, and more.
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| txHash | string | true | The transaction hash to look up (e.g., '0x1234...') |
scripts.tools.get_transaction_receipt
工具描述:Get a transaction receipt by its hash
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| txHash | string | true | The transaction hash to look up |
scripts.tools.estimate_gas
工具描述:Estimate the gas cost for a transaction
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| to | string | true | The recipient address | |
| value | string | false | The amount of ETH to send in ether (e.g., '0.1') | |
| data | string | false | The transaction data as a hex string |
scripts.tools.read_contract
工具描述:Read data from a smart contract by calling a view/pure function. This doesn't modify blockchain state and doesn't require gas or signing.
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| contractAddress | string | true | The address of the smart contract to interact with | |
| abi | array | true | The ABI (Application Binary Interface) of the smart contract function, as a JSON array | |
| functionName | string | true | The name of the function to call on the contract (e.g., 'balanceOf') | |
| args | array | false | The arguments to pass to the function, as an array (e.g., ['0x1234...']) |
scripts.tools.is_contract
工具描述:Check if an address is a smart contract or an externally owned account (EOA)
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| address | string | true | The wallet or contract address or ENS name to check (e.g., '0x1234...' or 'uniswap.eth') |
scripts.tools.get_token_info
工具描述:Get comprehensive information about an ERC20 token including name, symbol, decimals, total supply, and other metadata. Use this to analyze any token on EVM chains.
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| tokenAddress | string | true | The contract address of the ERC20 token (e.g., '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' for USDC on Ethereum) |
scripts.tools.get_token_balance_erc20
工具描述:Get ERC20 token balance for an address
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| address | string | true | The address to check balance for | |
| tokenAddress | string | true | The ERC20 token contract address |
scripts.tools.get_nft_info
工具描述:Get detailed information about a specific NFT (ERC721 token), including collection name, symbol, token URI, and current owner if available.
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| tokenAddress | string | true | The contract address of the NFT collection (e.g., '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D' for Bored Ape Yacht Club) | |
| tokenId | string | true | The ID of the specific NFT token to query (e.g., '1234') | |
| network | string | false | Network name (e.g., 'vitruveo', 'optimism', 'arbitrum', 'base', 'polygon') or chain ID. Most NFTs are on Ethereum mainnet, which is the default. |
scripts.tools.check_nft_ownership
工具描述:Check if an address owns a specific NFT
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| tokenAddress | string | true | The contract address or ENS name of the NFT collection (e.g., '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D' for BAYC or 'boredapeyachtclub.eth') | |
| tokenId | string | true | The ID of the NFT to check (e.g., '1234') | |
| ownerAddress | string | true | The wallet address or ENS name to check ownership against (e.g., '0x1234...' or 'vitalik.eth') |
scripts.tools.get_erc1155_token_uri
工具描述:Get the metadata URI for an ERC1155 token (multi-token standard used for both fungible and non-fungible tokens). The URI typically points to JSON metadata about the token.
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| tokenAddress | string | true | The contract address of the ERC1155 token collection (e.g., '0x76BE3b62873462d2142405439777e971754E8E77') | |
| tokenId | string | true | The ID of the specific token to query metadata for (e.g., '1234') | |
| network | string | false | Network name (e.g., 'vitruveo', 'optimism', 'arbitrum', 'base', 'polygon') or chain ID. ERC1155 tokens exist across many networks. Defaults to Ethereum mainnet. |
scripts.tools.get_nft_balance
工具描述:Get the total number of NFTs owned by an address from a specific collection. This returns the count of NFTs, not individual token IDs.
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| tokenAddress | string | true | The contract address of the NFT collection (e.g., '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D' for Bored Ape Yacht Club) | |
| ownerAddress | string | true | The wallet address to check the NFT balance for (e.g., '0x1234...') | |
| network | string | false | Network name (e.g., 'vitruveo', 'optimism', 'arbitrum', 'base', 'polygon') or chain ID. Most NFTs are on Ethereum mainnet, which is the default. |
scripts.tools.get_erc1155_balance
工具描述:Get the balance of a specific ERC1155 token ID owned by an address. ERC1155 allows multiple tokens of the same ID, so the balance can be greater than 1.
参数定义
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| tokenAddress | string | true | The contract address of the ERC1155 token collection (e.g., '0x76BE3b62873462d2142405439777e971754E8E77') | |
| tokenId | string | true | The ID of the specific token to check the balance for (e.g., '1234') | |
| ownerAddress | string | true | The wallet address to check the token balance for (e.g., '0x1234...') | |
| network | string | false | Network name (e.g., 'vitruveo', 'optimism', 'arbitrum', 'base', 'polygon') or chain ID. ERC1155 tokens exist across many networks. Defaults to Ethereum mainnet. |
返回值处理
工具函数返回 dict 对象:
result["raw"]- API 原始返回数据(JSON),直接将此数据整理后展示给用户result["success"]- 是否成功(True/False)result["message"]- 状态消息
项目结构
./
├── scripts/
│ ├── __init__.py
│ ├── config.py # 配置管理 + set_api_key()
│ ├── call_api.py # API 客户端 + call_api()
│ └── tools.py # 工具函数(直接调用)
├── requirements.txt
└── SKILL.md
注意事项
- API 密钥是必需的,无密钥时必须通过 AskUserQuestion 询问用户
- 禁止在缺少 API 密钥时自行搜索或编造数据
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Vitruveo 区块链网络的只读数据服务,满足 AI 代理访问链上数据的需求
- 覆盖主流 EVM 网络操作,包括余额查询、交易信息、NFT/ERC20 代币分析等高频场景
亮点
- description 清晰定义了 Skill 的核心功能和使用场景
- 触发词精准,边界明确,不易与其他 Skill 混淆
待提升项
-
缺少 When to Use/示例章节 原报告严重程度:轻微
文档缺少 When to Use 和端到端示例章节
改进建议:建议补充 When to Use 说明和完整的端到端使用示例,帮助用户快速上手
亮点
- 文档结构清晰,包含详细的工作流程和工具选择规则
- 工具参数定义完整,返回值处理说明清楚
亮点
- API 密钥管理机制完善,确保服务可用性
- 工具来源明确,参数校验完整,异常处理合理
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 17, 19, 21, 22, 23 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- xiaobenyang.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。