tx-status

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Transaction Status Verification

交易状态验证

Use this skill to fetch on-chain data for a given transaction hash. This is critical for verifying the outcome of
send
or
trade
operations.
使用此工具获取给定交易哈希的链上数据。这对于验证
send
trade
操作的结果至关重要。

Hard Rules (CRITICAL)

硬性规则(至关重要)

  1. Verification: After performing a
    send
    or
    trade
    , you MUST use this skill if the user asks "did it go through?" or "show me the link".
  2. Chain Specificity: If the transaction was on a specific chain (e.g., Monad), you MUST verify the status on that same chain using the
    --chain
    flag.
  1. 验证要求:在执行
    send
    trade
    操作后,如果用户询问“交易成功了吗?”或“给我看链接”,你必须使用此工具。
  2. 链特异性:如果交易是在特定链上进行的(例如Monad),你必须使用
    --chain
    标志在同一链上验证状态。

Usage

使用方法

Check Status

检查状态

bash
npx fibx@latest tx-status <hash> [--chain <chain>]
  • <hash>
    : The transaction hash (starting with
    0x
    ).
  • --chain <chain>
    : Optional. The network the transaction was sent on (
    base
    ,
    citrea
    ,
    hyperevm
    ,
    monad
    ). Defaults to
    base
    .
bash
npx fibx@latest tx-status <hash> [--chain <chain>]
  • <hash>
    :交易哈希(以
    0x
    开头)。
  • --chain <chain>
    :可选参数。交易所在的网络(
    base
    ,
    citrea
    ,
    hyperevm
    ,
    monad
    )。默认值为
    base

Examples

示例

Scenario 1: Check a Base transaction (Default)

场景1:检查Base链上的交易(默认)

Input: "Check status of 0x123...456"
bash
npx fibx@latest tx-status 0x123...456
输入:“检查0x123...456的状态”
bash
npx fibx@latest tx-status 0x123...456

Scenario 2: Check a Monad transaction

场景2:检查Monad链上的交易

Input: "Verify tx 0xabc...def on Monad"
bash
npx fibx@latest tx-status 0xabc...def --chain monad
输入:“验证Monad链上的交易0xabc...def”
bash
npx fibx@latest tx-status 0xabc...def --chain monad

JSON Output (for programmatic parsing)

JSON输出(用于程序化解析)

Use
--json
to get a machine-readable response:
bash
npx fibx@latest tx-status 0x123...456 --json
Output Schema:
json
{
	"status": "success", // "success" or "reverted"
	"blockNumber": "12345", // Block number where included
	"gasUsed": "21000", // Gas used
	"explorerLink": "https://..." // URL to block explorer
}
使用
--json
参数获取机器可读的响应:
bash
npx fibx@latest tx-status 0x123...456 --json
输出格式
json
{
	"status": "success", // "success" 或 "reverted"
	"blockNumber": "12345", // 交易所在区块号
	"gasUsed": "21000", // 消耗的Gas
	"explorerLink": "https://..." // 区块浏览器链接
}

Error Handling

错误处理

  • Transaction not found: If the TX is not found, ensure you are querying the correct chain.
  • Pending: The CLI may hang or return "pending" if the tx is still in the mempool.
  • 交易未找到:如果未找到交易,请确保你查询的是正确的链。
  • 待处理状态:如果交易仍在内存池中,CLI可能会挂起或返回“pending”。