Mailchain
Search…
Installing, Starting & Stopping The Indexer

Installation

The transaction indexer comes as a docker cluster which runs locally.

Prerequisites

Docker should be installed and running.
Clone the Mailchain repository to your .mailchain/mailchain folder:
1
git clone https://github.com/mailchain/mailchain.git ~/.mailchain/mailchain
2
cd ~/.mailchain/mailchain
Copied!

Starting the Indexer

The indexer is preconfigured for 3 networks:
Network
Command
Edgeware Mainnet
make edgeware-mainnet
Edgeware Testnet (beresheet)
make edgeware-beresheet
Edgeware Local (development)
make edgeware-local
Select the network and run the appropriate make command (e.g. make edgeware-mainnet). This will download or update the required docker containers.
NOTE: If working in local mode, you can access the preconfigured development accounts here if you need to transfer a balance to accounts you configured in Setting Up > Add Account.
If successful, the output will be similar to the following:
1
Creating network "mailchain_default" with the default driver
2
Pulling database (postgres:)...
3
latest: Pulling from library/postgres
4
bf5952930446: Downloading [===============> ] 8.399MB/27.09MB
5
...
6
Creating mailchain_database_1 ... done
7
Creating mailchain_receiver_1 ... done
8
Creating mailchain_indexer-migration_1 ... done
9
Creating mailchain_indexer-substrate-mainnet_1 ... done
10
...
11
indexer-substrate_1 | 2020/09/27 19:19:51 Connecting to ws://mainnet1.edgewa.re:9944...
12
receiver_1 | [negroni] listening on :8080
13
indexer-substrate_1 | block number: 3191664
14
indexer-substrate_1 | block hash: 0x81c694ba6973213905a8beaa8f8b69db395fb060606411d19c4f3b575c5f9b4c
15
indexer-substrate_1 | next block number: 3191665
16
indexer-substrate_1 | block number: 3191665
Copied!

Stopping the Indexer

To gracefully stop the indexer, press Ctrl+C.

Last modified 1yr ago