@evmcrispr/module-explorer
v0.11.0
Published
Inspect transactions and addresses: decoded tx summaries, account classification and history via RPC and block explorers.
Readme
explorer module
Inspect transactions and addresses: decoded tx summaries, account classification and history via RPC and block explorers.
⚗️ Experimental — available at next.evmcrispr.com.
load explorerHelpers
| Helper | Returns | Description |
|--------|---------|-------------|
| @explorer:account ⚗️ | string | Human-readable summary of an address: EOA / contract / EIP-7702-delegated EOA, verified contract name, proxy implementation, ENS name, balance and tx count. |
| @explorer:tx ⚗️ | string | Human-readable summary of a transaction: status, labeled from/to, value, decoded function call, gas, fee and decoded logs. Use the @explorer:tx.* field helpers for machine-readable values. |
| @explorer:tx.block ⚗️ | number | Block number a transaction was mined in. |
| @explorer:tx.calldata ⚗️ | bytes | Full input data of a transaction, including the 4-byte selector. Replay it with exec <target> <calldata> or decode it with @abi.decodeCall. |
| @explorer:tx.fee ⚗️ | number | Total fee paid for a transaction, in wei (gasUsed x effectiveGasPrice, plus the L1 data fee on OP-stack chains). |
| @explorer:tx.from ⚗️ | address | Sender address of a transaction. |
| @explorer:tx.gasUsed ⚗️ | number | Gas used by a transaction (units of gas, not wei). |
| @explorer:tx.status ⚗️ | bool | Whether a transaction succeeded: true on success, false when it reverted. Errors while the transaction is still pending. |
| @explorer:tx.timestamp ⚗️ | number | Unix timestamp (seconds) of the block a transaction was mined in. Compare against @date values. |
| @explorer:tx.to ⚗️ | address | Recipient address of a transaction. Errors for contract-creation transactions (the created contract has no to). |
| @explorer:tx.value ⚗️ | number | Native value sent with a transaction, in wei. |
| @explorer:txs ⚗️ | array | Most recent transaction hashes sent to or from an address, newest first. Inspect individual entries with @explorer:tx. Needs an explorer API (Etherscan key or a chain with a Blockscout instance) — plain RPC cannot list per-address history. |
