An open API service indexing awesome lists of open source software.

https://github.com/smitrajput/pay-no-load

A plugin for the Alethio Ethereum lite-explorer
https://github.com/smitrajput/pay-no-load

Last synced: 19 days ago
JSON representation

A plugin for the Alethio Ethereum lite-explorer

Awesome Lists containing this project

README

        


pay-no-load


A plugin for the Alethio Ethereum lite-explorer

---

:tada::tada::tada::tada:


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 :

```javascript
$ 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/[email protected]
acp install --dev \
@alethio/explorer-plugin-eth-common \
@alethio/explorer-plugin-eth-lite \
@alethio/explorer-plugin-3box
acp install --dev smitrajput/pay-no-load
```

7. 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](https://developers.aleth.io/)):

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

Add the page definition :

```json
{
"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:

```json
{
"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",
```

8. 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 AkashTezan Sahu
```