Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
silkaj [2018/09/01 17:39] simon |
silkaj [2019/11/30 16:29] (Version actuelle) simon |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Silkaj ====== | ====== Silkaj ====== | ||
- | Silkaj est un client en ligne de commande pour Duniter. Il est écrit en Python. | + | Silkaj |
===== Installation ===== | ===== Installation ===== | ||
- | L' | + | Sur Ubuntu ou Debian (Buster ou Testing) : |
+ | <code bash> | ||
+ | $ sudo apt install silkaj | ||
- | [[https:// | + | $ silkaj --version |
+ | silkaj, version 0.6.5 | ||
+ | </code> | ||
+ | (30/11/2019) | ||
+ | ===== Utilisation ===== | ||
+ | ==== About ==== | ||
<code bash> | <code bash> | ||
- | simon@deb: | + | $ silkaj about |
- | simon@deb: | + | |
+ | | ||
+ | @@@ | ||
+ | | ||
+ | | ||
+ | @@ @@@ | ||
+ | @@ @@@@ @@@@@@@@@ | ||
+ | | ||
+ | | ||
+ | | ||
+ | @@ @@@@* | ||
+ | @@ @@@@@ @@@@@@@@@@ | ||
+ | | ||
+ | @@@ @@@@@@@@@@@@ | ||
+ | @@@ @@@@@@@@ | ||
+ | @@@@ | ||
+ | @@@@@@@@@@@@@@@ | ||
+ | </ | ||
- | simon@deb: | + | ==== Voir le solde d'un compte ==== |
+ | <code bash> | ||
+ | $ silkaj amount | ||
+ | Total amount of: Hb2TLnB6d3dKiC1VibaUJbZtLhyuHYaDxXNvVd7NqXJe | ||
+ | ---------------------------------------------------------------- | ||
+ | Total Relative | ||
+ | Total Quantitative = 8057.35 Ğ1 | ||
+ | </ | ||
- | simon@deb: | + | ==== Découverte du réseau ==== |
+ | <code bash> | ||
+ | $ silkaj net --help | ||
+ | Usage: silkaj net [OPTIONS] | ||
- | simon@deb: | + | Display network |
- | simon@deb:~/ | + | Options: |
+ | -d, --discover | ||
+ | -s, --sort TEXT Sort column names comma-separated (for example "-s | ||
+ | | ||
+ | | ||
+ | --help | ||
- | simon@deb: | + | $ silkaj |
+ | Discovering network | ||
+ | 0% | ||
+ | 8% | ||
+ | 15% | ||
+ | 23% | ||
+ | 31% | ||
+ | 38% | ||
+ | 46% | ||
+ | 54% | ||
+ | 62% | ||
+ | 69% | ||
+ | 77% | ||
+ | 85% | ||
+ | 92% | ||
+ | Getting informations about nodes: | ||
+ | 0% 89.87.50.21 10902 | ||
+ | 8% g1.donnadieu.fr 12901 | ||
+ | 17% duniter-g1.p2p.legal 45000 | ||
+ | 25% paidge.normandie-libre.fr 10902 | ||
+ | 33% remuniter.cgeek.fr 16120 | ||
+ | 42% duniter.g1.1000i100.fr 443 | ||
+ | 50% 165.22.22.206 9220 | ||
+ | 58% 91.121.157.13 10903 | ||
+ | 67% 62.210.8.219 10900 | ||
+ | 75% 82.225.73.91 50190 | ||
+ | 83% g1.jytou.fr 9000 | ||
+ | 92% 167.172.182.176 9220 | ||
+ | 12 peers ups, with 0 members and 12 non-members at 15:57:09 | ||
+ | | domain | ||
+ | |-----------------------+--------+-----------------+-----------+----------+----------+------------+---------+-------------+-----------| | ||
+ | | …niter.g1.1000i100.fr | 443 | | ||
+ | | | ||
+ | | g1.donnadieu.fr | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | duniter-g1.p2p.legal | ||
+ | | g1.jytou.fr | ||
+ | | | ||
+ | | remuniter.cgeek.fr | ||
+ | | …e.normandie-libre.fr | 10902 | 90.108.225.178 | ||
+ | | | ||
+ | </ | ||
- | simon@deb: | + | Je suis surpris de voir une petite dizaine de nœuds alors que Césium en voit plus de 70 ? |
- | Creating a virtualenv for this project... | + | ==== Information sur la monnaie ==== |
- | Pipfile: / | + | <code bash> |
- | Using / | + | $ silkaj |
- | ⠋Already using interpreter / | + | Connected |
- | Using base prefix '/ | + | Current block number: 276167 |
- | New python executable in / | + | Currency name: Ğ1 |
- | Also creating executable in / | + | Number of members: 2404 |
- | Installing setuptools, pip, wheel...done. | + | Minimal Proof-of-Work: 89 |
- | Setting project for silkaj-zPbJsobl to /home/ | + | Current time: 2019-11-30 16: |
+ | Median time: 2019-11-30 15:17:48 | ||
+ | Difference time: 02:08:16 | ||
+ | Number of blocks containing: | ||
+ | - new comers: 2750 | ||
+ | - Certifications: | ||
+ | - Actives (members updating their membership): | ||
+ | - Leavers: 3 | ||
+ | - Excluded: 949 | ||
+ | - UD created: 999 | ||
+ | - transactions: | ||
+ | </code> | ||
- | Virtualenv location: / | + | ==== Voir les derniers blocks ==== |
- | requirements.txt found, instead of Pipfile! Converting... | + | <code bash> |
- | Warning: Your Pipfile now contains pinned versions, if your requirements.txt did. | + | $ silkaj |
- | We recommend updating your Pipfile to specify the " | + | Usage: silkaj blocks |
- | Pipfile.lock not found, creating... | + | |
- | Locking | + | |
- | Locking [packages] dependencies... | + | |
- | Updated Pipfile.lock (ebe2e7)! | + | |
- | Installing dependencies from Pipfile.lock (ebe2e7)... | + | |
- | 🐍 | + | |
- | To activate this project' | + | |
- | Alternatively, | + | |
- | + | ||
- | simon@deb: | + | |
- | Launching subshell in virtual environment… | + | |
- | . / | + | |
- | (silkaj-zPbJsobl) simon@deb:~/Programmes/ | + | Display blocks |
- | Silkaj: command line Duniter client | + | |
+ | Options: | ||
+ | -n, --nbr INTEGER | ||
+ | | ||
+ | -d, --detailed | ||
+ | --help | ||
+ | |||
+ | $ silkaj | ||
+ | Issuers for last 10 blocks from block n°276156 to block n°276165 | ||
+ | | block | gentime | ||
+ | |---------+-----------+--------------+------------+------------------| | ||
+ | | 276165 | 16:17:54 | | ||
+ | | 276164 | 16: | ||
+ | | 276163 | 16: | ||
+ | | 276162 | 16: | ||
+ | | 276161 | 15: | ||
+ | | 276160 | 15: | ||
+ | | 276159 | 15: | ||
+ | | 276158 | 15: | ||
+ | | 276157 | 15: | ||
+ | | 276156 | 15: | ||
+ | </code> | ||
+ | |||
+ | Il y a une option pour le détail mais elle ne donne pas plus d' | ||
+ | <code bash> | ||
+ | $ silkaj | ||
+ | Issuers for last 10 blocks from block n°276157 to block n°276166 | ||
+ | | block | gentime | ||
+ | |---------+-----------+--------------+------------+------------------| | ||
+ | | 276165 | 16:17:54 | | ||
(...) | (...) | ||
</ | </ |