Open brenzi opened 1 year ago
for a batch of vouchers, we'd like to easily query which ones are reaped and optionally reap all outdated vouchers
in python. will need to use CLI client wrapper lib
input:
voucher.py
*.secrets
global args:
ss58prefix
commands:
info
accountid, balance, <reap_timestamp>, <reap_accountid>
recollect --reap_age 30d --beneficiary ACCOUNTID
reap_age
for a batch of vouchers, we'd like to easily query which ones are reaped and optionally reap all outdated vouchers
in python. will need to use CLI client wrapper lib
input:
voucher.py
as*.secrets
global args:
ss58prefix
specifies account display format: 42 for default, 2 for kusamacommands:
info
: prints csv to stdout:accountid, balance, <reap_timestamp>, <reap_accountid>
, where balance has demurrage appliedrecollect --reap_age 30d --beneficiary ACCOUNTID
: reaps all vouchers that haven't sent any extrinsic for the lastreap_age
days/time