Token导航 LogoToken导航

Agent Skill · 开发

multiversx-blockchain-data(multiversx 区块链数据)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

multiversx-blockchain-data 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 20,882。

总安装 210周安装 9GitHub Stars 11下载 73核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:multiversx-blockchain-data(multiversx 区块链数据)
来源仓库:https://github.com/multiversx/mx-ai-skills
仓库路径:skills/multiversx-blockchain-data
安装命令:
npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-blockchain-data
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-blockchain-data

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于辅助区块链数据整理、CSV/Excel 分析和指标计算。适合清洗字段、汇总交易数据或生成统计报告。使用时需确认数据来源和时间范围,避免误用样本替代全量。

安装命令:npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-blockchain-data。涉及敏感数据时应先脱敏并确认操作权限边界。

来源仓库内路径:skills/multiversx-blockchain-data

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-blo…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

multiversx-blockchain-data 怎么安装?

在终端执行 npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-blockchain-da…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

multiversx-blockchain-data 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

multiversx-blockchain-data 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

multiversx-blockchain-data 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

multiversx-blockchain-data 用的人多吗?

公开数据是累计安装 210 次,近一周安装 9 次,下载 73 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

multiversx-blockchain-data 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
multiversx-blockchain-data

multiversx 区块链数据 · 本页

21011需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

MultiversX Blockchain Data — self.blockchain() API Reference

Complete reference for reading on-chain state in MultiversX smart contracts (SDK v0.64+).

Caller & Account Info

MethodReturnsDescription
.get_caller()ManagedAddressAddress that initiated the current call
.get_sc_address()ManagedAddressThis contract's own address
.get_owner_address()ManagedAddressContract owner address
.check_caller_is_owner()()Panics if caller!= owner. Equivalent to #[only_owner].
.check_caller_is_user_account()()Panics if caller is a smart contract (not an EOA).
.is_smart_contract(address)boolCheck if an address is a smart contract
.get_shard_of_address(address)u32Get shard ID for an address
// Owner-only guard (manual alternative to #[only_owner])
self.blockchain().check_caller_is_owner();

// Prevent contract-to-contract calls (anti-flash-loan)
self.blockchain().check_caller_is_user_account();

// Check if target is a SC before sending
let is_sc = self.blockchain().is_smart_contract(&target);

Balances

MethodReturnsDescription
.get_balance(address)BigUintEGLD balance of any address
.get_sc_balance(token_id, nonce)BigUintThis contract's balance of any token (EGLD or ESDT). token_id is impl AsRef<TokenId>.
.get_esdt_balance(address, token_id, nonce)BigUintESDT balance of any address. token_id is &EsdtTokenIdentifier.
// Check own EGLD balance
let egld = self.blockchain().get_balance(&self.blockchain().get_sc_address());

// Check own ESDT balance (simpler via get_sc_balance)
let balance = self.blockchain().get_sc_balance(&my_token_id, 0u64);

Block Info

Current Block

MethodReturnsDescription
.get_block_timestamp_seconds()TimestampSecondsBlock timestamp in seconds (v0.63+)
.get_block_timestamp_millis()TimestampMillisBlock timestamp in milliseconds (v0.63+)
.get_block_nonce()u64Block nonce (height)
.get_block_round()u64Block round
.get_block_epoch()u64Current epoch
.get_block_round_time_millis()DurationMillisRound duration in ms (v0.63+)
.get_block_random_seed()ManagedByteArray<48>48-byte random seed

Previous Block

MethodReturnsDescription
.get_prev_block_timestamp_seconds()TimestampSecondsPrevious block timestamp (seconds)
.get_prev_block_timestamp_millis()TimestampMillisPrevious block timestamp (ms)
.get_prev_block_nonce()u64Previous block nonce
.get_prev_block_round()u64Previous block round
.get_prev_block_epoch()u64Previous epoch
.get_prev_block_random_seed()ManagedByteArray<48>Previous block random seed

Epoch Start Info

MethodReturnsDescription
.get_epoch_start_block_timestamp_millis()TimestampMillisWhen current epoch started
.get_epoch_start_block_nonce()u64Block nonce at epoch start
.get_epoch_start_block_round()u64Block round at epoch start

Deprecated Timestamp Methods (Do NOT Use)

DeprecatedReplacementSince
.get_block_timestamp().get_block_timestamp_seconds()v0.63
.get_block_timestamp_ms().get_block_timestamp_millis()v0.63
.get_prev_block_timestamp().get_prev_block_timestamp_seconds()v0.63
.get_prev_block_timestamp_ms().get_prev_block_timestamp_millis()v0.63
.get_block_round_time_ms().get_block_round_time_millis()v0.63
.epoch_start_block_timestamp_ms().get_epoch_start_block_timestamp_millis()v0.63
.epoch_start_block_timestamp_millis().get_epoch_start_block_timestamp_millis()v0.63.1
.epoch_start_block_nonce().get_epoch_start_block_nonce()v0.63.1
.epoch_start_block_round().get_epoch_start_block_round()v0.63.1

Transaction Info

MethodReturnsDescription
.get_tx_hash()ManagedByteArray<32>Current transaction hash
.get_gas_left()u64Remaining gas
.get_state_root_hash()ManagedByteArray<32>State root hash

ESDT Token Metadata

MethodReturnsDescription
.get_esdt_token_data(address, token_id, nonce)EsdtTokenDataFull token data (amount, attributes, creator, royalties, URIs, etc.)
.get_esdt_token_type(address, token_id, nonce)EsdtTokenTypeToken type enum (Fungible, NonFungible, SemiFungible, Meta)
.get_token_attributes::<T>(token_id, nonce)T: TopDecodeDeserialized NFT/SFT attributes from this contract's account
.get_current_esdt_nft_nonce(address, token_id)u64Last minted nonce for a token on an address
// EsdtTokenData fields:
pub struct EsdtTokenData<M: ManagedTypeApi> {
    pub token_type: EsdtTokenType,
    pub amount: BigUint<M>,
    pub frozen: bool,
    pub hash: ManagedBuffer<M>,
    pub name: ManagedBuffer<M>,
    pub attributes: ManagedBuffer<M>,  // raw bytes — use get_token_attributes for typed
    pub creator: ManagedAddress<M>,
    pub royalties: BigUint<M>,         // 0-10000 (basis points)
    pub uris: ManagedVec<M, ManagedBuffer<M>>,
}
// Read NFT attributes as a typed struct
#[derive(TopDecode)]
struct MyNftAttributes {
    level: u8,
    power: u64,
}

let attrs: MyNftAttributes = self.blockchain()
    .get_token_attributes::<MyNftAttributes>(&nft_token_id, nft_nonce);

ESDT Status & Roles

MethodReturnsDescription
.is_esdt_frozen(address, token_id, nonce)boolWhether token is frozen for this address
.is_esdt_paused(token_id)boolWhether token transfers are globally paused
.is_esdt_limited_transfer(token_id)boolWhether token has limited transfer enabled
.get_esdt_local_roles(token_id)EsdtLocalRoleFlagsBitmask of roles this contract has for the token
// Check roles before minting
let roles = self.blockchain().get_esdt_local_roles(&token_id);
require!(
    roles.has_role(&EsdtLocalRole::NftCreate),
    "Contract lacks NftCreate role"
);

Code Inspection

MethodReturnsDescription
.get_code_metadata(address)CodeMetadataContract code metadata (upgradeable, readable, payable flags)
.get_code_hash(address)ManagedBufferHash of contract WASM code
.is_builtin_function(name)boolWhether a function name is a protocol built-in

Native Token

MethodReturnsDescription
.get_native_token()ManagedRef<TokenId>Returns EGLD-000000 as a TokenId
.is_native_token(token_id)boolChecks if a TokenId is EGLD-000000

Validators

MethodReturnsDescription
.get_cumulated_validator_rewards()BigUintValidator rewards accrued to this contract

Back-Transfers (After Cross-Contract Calls)

MethodReturnsDescription
.get_back_transfers()BackTransfersAll tokens returned from a sync/async call
.reset_back_transfers()()Clears current back-transfers (prevents double-reading)

See the multiversx-cross-contract-calls skill for full back-transfer patterns.

Common Patterns

Time-Based Logic

let now = self.blockchain().get_block_timestamp_seconds();
let deadline = self.deadline().get();
require!(now < deadline, "Deadline passed");

Shard-Aware Operations

let caller_shard = self.blockchain().get_shard_of_address(
    &self.blockchain().get_caller()
);
let sc_shard = self.blockchain().get_shard_of_address(
    &self.blockchain().get_sc_address()
);
let same_shard = caller_shard == sc_shard;
// If same shard, can use sync calls; otherwise need async

Token Property Validation

fn validate_nft(&self, token_id: &EsdtTokenIdentifier, nonce: u64) {
    let sc_addr = self.blockchain().get_sc_address();
    let data = self.blockchain().get_esdt_token_data(&sc_addr, token_id, nonce);
    require!(data.amount > 0u64, "NFT not owned");
    require!(!data.frozen, "Token is frozen");
}

Balance Check Before Transfer

let sc_balance = self.blockchain().get_sc_balance(&token_id, 0u64);
require!(sc_balance >= amount, "Insufficient contract balance");
self.tx().to(&recipient).esdt((token_id, 0u64, amount)).transfer();

Anti-Patterns

// BAD: Using deprecated get_block_timestamp() — returns raw u64
let ts = self.blockchain().get_block_timestamp();

// GOOD: Use typed timestamp (v0.63+)
let ts = self.blockchain().get_block_timestamp_seconds();

// BAD: Storing raw u64 timestamps, mixing seconds/millis
self.last_action().set(self.blockchain().get_block_timestamp_millis().as_u64_millis());

// GOOD: Store typed timestamps
self.last_action().set(self.blockchain().get_block_timestamp_seconds());

// BAD: get_balance to check own EGLD — requires passing own address
let bal = self.blockchain().get_balance(&self.blockchain().get_sc_address());

// GOOD: Use get_sc_balance which handles EGLD via native token detection
let bal = self.blockchain().get_sc_balance(&self.blockchain().get_native_token(), 0u64);

平台分布

Codex

39.6%
按下载量换算29

Claude

29.15%
按下载量换算21

Cursor

19.41%
按下载量换算14

Gemini CLI

9.17%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills