tx-status
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTransaction Status Verification
交易状态验证
Use this skill to fetch on-chain data for a given transaction hash. This is critical for verifying the outcome of or operations.
sendtrade使用此工具获取给定交易哈希的链上数据。这对于验证或操作的结果至关重要。
sendtradeHard Rules (CRITICAL)
硬性规则(至关重要)
- Verification: After performing a or
send, you MUST use this skill if the user asks "did it go through?" or "show me the link".trade - Chain Specificity: If the transaction was on a specific chain (e.g., Monad), you MUST verify the status on that same chain using the flag.
--chain
- 验证要求:在执行或
send操作后,如果用户询问“交易成功了吗?”或“给我看链接”,你必须使用此工具。trade - 链特异性:如果交易是在特定链上进行的(例如Monad),你必须使用标志在同一链上验证状态。
--chain
Usage
使用方法
Check Status
检查状态
bash
npx fibx@latest tx-status <hash> [--chain <chain>]- : The transaction hash (starting with
<hash>).0x - : Optional. The network the transaction was sent on (
--chain <chain>,base,citrea,hyperevm). Defaults tomonad.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...456Scenario 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 monadJSON Output (for programmatic parsing)
JSON输出(用于程序化解析)
Use to get a machine-readable response:
--jsonbash
npx fibx@latest tx-status 0x123...456 --jsonOutput Schema:
json
{
"status": "success", // "success" or "reverted"
"blockNumber": "12345", // Block number where included
"gasUsed": "21000", // Gas used
"explorerLink": "https://..." // URL to block explorer
}使用参数获取机器可读的响应:
--jsonbash
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”。