Alethio Explorer plugin that fetches data via Web3, directly from an ETH node. Used by ethereum-lite-explorer. Works together with the @alethio/explorer-plugin-eth-common core plugin.
See cms-plugin-tool for install instructions.
The structure of the config object is described here.
See config.sample.json for an example.
Refer to pages.sample.json for a pages
structure example.
Page URI | Created context shape | Module slots | Description | Implementation |
---|---|---|---|---|
page://aleth.io/dashboard | {} | content | Main dashboard page | dashboardPage |
page://aleth.io/uncle | { blockNumber, uncleIndex } | content | Uncle details page | unclePage |
Context URI | Generated context shape | Placed in context | Description | Implementation |
---|---|---|---|---|
context://aleth.io/lite/tx/parentBlock | { txHash, blockNumber } | { txHash } | Adds the parent block to the current TX context | txParentBlockContext |
Module URI | Context shape | Module slots | Description | Implementation |
---|---|---|---|---|
module://aleth.io/lite/block/details | { blockNumber } | confirmations, txs, extraData } | Block data fields | blockDetailsModule |
module://aleth.io/lite/block/txs | { blockNumber } | N/A | Transactions in given block, in two visualizations (grid and heat map) | blockTxsModule |
module://aleth.io/lite/uncle/details | { blockNumber, uncleIndex } | N/A | Uncle data fields | uncleDetailsModule |
module://aleth.io/lite/tx/details | { txHash } | blockConfirmations | Transaction data fields | txDetailsModule |
module://aleth.io/lite/account/details | { accountHash } | N/A | Basic account data | accountDetailsModule |
module://aleth.io/lite/account/contract | { accountHash } | N/A | Contract data (creation code etc.) | accountContractModule |
Adapter URI | Context shape | Return type | Description | Implementation |
---|---|---|---|---|
adapter://aleth.io/search/v2 | {} | ISearch | Returns a search provider | SearchAdapter |
adapter://aleth.io/block/latestNo | {} | number | Returns the latest block number on the chain | LatestBlockNumberAdapter |
adapter://aleth.io/block/basic | { blockNumber } | IBlockBasicInfo | Adapter for basic block data | BlockBasicInfoAdapter |
adapter://aleth.io/lite/block/details | { blockNumber } | IBlockDetails | Provides detailed block data specific to lite explorer | BlockDetailsAdapter |
adapter://aleth.io/block-range/summary | { rangeStart, rangeEnd, blockNumber } | Array<IBlockTxCount | undefined> | TX counts per block for a range of blocks | BlockListAdapter |
adapter://aleth.io/block/confirmations | { blockNumber } | IBlockConfirmations | Info about number of confirmations for a given block | BlockConfirmationsAdapter |
adapter://aleth.io/lite/uncle/details | { blockNumber, uncleIndex } | IUncleDetails | Uncle data fields | UncleDetailsAdapter |
adapter://aleth.io/lite/tx/details | { txHash } | ITxDetails | Transaction data fields | TxDetailsAdapter |
adapter://aleth.io/lite/tx/receipt | { txHash } | ITxReceipt | Tx receipt data | TxReceiptAdapter |
adapter://aleth.io/lite/account/details | { accountHash } | IAccountDetails | Basic account data | AccountDetailsAdapter |
adapter://aleth.io/lite/account/balance | { accountHash } | BigNumber | Total account balance in ETH | AccountBalanceAdapter |