kotod で koto のマイニングの税計算を行う
koto, マイニングしすぎて transaction 数が多く, block explorer サービス経由で取得するのも面倒なので,
kotod でブロックチェーンから直接トランザクションを取得してみます.
2020/05/05 時点での最新の koto 2.1.2 を使います.
kotod, koto-cli の中身はほぼ zcash(bitcoind + alpha) なので, zcashd/bitcoind のやりかたを周到します.
zcashd で ZCash マイニングの税計算を行う
https://qiita.com/syoyo/items/32e6ed62e49a92df56f7
総トランザクション数を getwalletinfo
で取得します.
(chain が同期していないと, 総トランザクション数は変わりますので, chain が同期してから動かしましょう)
$ ./koto-cli getwalletinfo
txcount
を使います.
その後 txcount
の値を使って listtransactions します.
$ ./koto-cli listtransactions "*" 2126 > tx.json
jq あたりで, txcount
の値と配列要素が一致するか確認しておきましょう.
$ jq '. | length' < tx.json
あとは JSON をよろしく python などで処理すれば完成です!
Author And Source
この問題について(kotod で koto のマイニングの税計算を行う), 我々は、より多くの情報をここで見つけました https://qiita.com/syoyo/items/30aa0b8ac2a35477f036著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .