smitrajput / pay-no-load

A plugin for the Alethio Ethereum lite-explorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pay-no-load

A plugin for the Alethio Ethereum lite-explorer


πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰

alethio-plugin

Setting up the lite-explorer and the plugin

  1. Clone the lite-explorer repo, and run the following commands in your terminal, one by one :

    $ git clone https://github.com/Alethio/ethereum-lite-explorer.git
    $ cd ethereum-lite-explorer
    $ npm install
    $ cp config.default.json config.dev.json
  2. Remove the version query strings ?v=#.#.# from the "plugins" URIs in config.dev.json.

  3. Build the lite-explorer: npm run build

  4. Now, in another terminal tab, while inside ethereum-lite-explorer install cms-plugin-tool and the plugins by running:

    npm i -g @alethio/cms-plugin-tool@1.0.0-beta.3
    acp install --dev \
        @alethio/explorer-plugin-eth-common \
        @alethio/explorer-plugin-eth-lite \
        @alethio/explorer-plugin-3box
    acp install --dev smitrajput/pay-no-load
    
  5. Now, inside the file config.dev.json in the lite-explorer repo, add the module and page definations for loading the module :

    Add the plugin and your Alethio API Key (Can be obtained here):

    "plugins": {
        "plugin://aleth.io/eth-common": {
        },
        "plugin://aleth.io/payts": {
             "alethio_api_key": "your_API_key"
        }
       },

    Add the page definition :

    {
      "def": "page://aleth.io/payts/profile-page",
      "children": {
        "content": [{ "def": "module://aleth.io/payts/profile" }]
      }
    }

    Add a clickable on the home page by inserting the line { "def": "module://aleth.io/payts/home-link" }, in:

    {
          "def": "page://aleth.io/dashboard",
          "children": {
            "content": [
              { "def": "module://aleth.io/search" },
              { "def": "module://aleth.io/payts/home-link" },
              {
                "def": "context://aleth.io/dashboard/latestBlockRange",
  6. Enter npm run start in the terminal while inside the ethereum-lite-explorer directory. The page with URL http://localhost:3000/ will open automatically, showing the lite-explorer home page. Click on Click here below the search bar, to access the pay-no-load plugin.

Features


Displays:

1. token contract metadata (i.e. total supply, symbol, decimals, etc.)

Show Token Contract Details

2. all token balances for a given wallet address

3. latest transactions from/to a contract address

Decode Txn from latest

4. decoded payloads (parameters/arguments) of transactions [most IMPORTANT feature; hence the repo name ;-)]


Made with ❀️ by Smit Rajput β€’ Akash β€’ Tezan Sahu ```

About

A plugin for the Alethio Ethereum lite-explorer


Languages

Language:TypeScript 77.6%Language:JavaScript 22.4%