Skip to content

giskook/polmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polmon

How to run

The default configuration file is monitor network 3

./polmon run

RPC interface

curl http://127.0.0.1:8080/polmon/api/v1/fee

returns the current total fee costed, data is the total fee costed in wei

{
    "code": "200000",
    "desc": "",
    "data": "0"
}

Database

Two tables are created in the database, one is the syncs table, the other is the statistics table.

sqlite3 ./fee.db

select * from syncs;
    
select * from statistics;

syncs table

The syncs table is used to store the sync information of the block, the fields are as follows:

block_num INTEGER ,
tx_hash string,
fee INTEGER,

statistics table

The statistics table is used to store the statistics information of the block, the fields are as follows:

block_num INTEGER ,
tx_hash string,
fee INTEGER,
total string,

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages