Skip to content

Instantly share code, notes, and snippets.

@d13co
d13co / track-indexer-progress.sh
Created April 20, 2022 01:14
Bash script to track Algorand Indexer progress via journalctl logs
#!/bin/bash
sleep_duration=10m
while true; do
block=$(journalctl -u algorand-indexer -n 2 2> /dev/null | grep imported | grep -oE 'r=[0-9]+' | cut -d= -f2)
if [ -z "$block" ]; then
echo "no block"
sleep $sleep_duration
continue;
@d13co
d13co / period 3 rewards data.ssv
Created October 1, 2022 20:48
Algorand Governance Period 3: reward payouts
This file has been truncated, but you can view the full file.
round tx_id amount+fees amount fees note receiver
21978368 C4UCAS4XBWQPQZP4XHUXJKCWP4YGH4H5ALTXEAEI2Q4IGW7UYW5A 198983845 198981845 2000 af/gov1:j{"rewardsPrd":3,"gov":"ERVOIVD2UX6274FXV5NMXREEVSJHSREHDRR7BEJW5GTGS7VAGJVPRVK4EY"} ERVOIVD2UX6274FXV5NMXREEVSJHSREHDRR7BEJW5GTGS7VAGJVPRVK4EY
21978368 KFY47X7PREK6WB67ZAROLPM7V44H7VVN3D2ITUQOYKKWM4F7MEAA 161856402 161854402 2000 af/gov1:j{"rewardsPrd":3,"gov":"APH4CK5GFICTWPFOLAYF6CJMMHC2NYJYZ27SSYB6RS6NQUYOIYE3SXTJ6E"} APH4CK5GFICTWPFOLAYF6CJMMHC2NYJYZ27SSYB6RS6NQUYOIYE3SXTJ6E
21978368 AT2XTWDCHOKX4I2PDVAREWKO74K3XXPHS2B7QGPUQXJ2GQVNQEVA 672565397 672563397 2000 af/gov1:j{"rewardsPrd":3,"gov":"LQOYUJWFBK4NBHP2XUAZ4TL56MHFMKLL4PEUVCVZ2ZC63CC5FNVJHAV6BA"} LQOYUJWFBK4NBHP2XUAZ4TL56MHFMKLL4PEUVCVZ2ZC63CC5FNVJHAV6BA
21978368 FRRJRDHMNUQETNSGRCMRA7CJD7ZYHQSF445YSW7OUQBRGKB6XZOA 6267991 6265991 2000 af/gov1:j{"rewardsPrd":3,"gov":"SCLQUVSJUXMPPHVZULQQ25UJG2EGQVQW3EPZHXUYTIIJLOXNORLCSL2ZKE"} SCLQUVSJUXMPPHVZULQQ25UJG2EGQVQW3EPZHXUYTIIJLOXNORLCSL2ZKE
@d13co
d13co / gov-rewards-4-rounds.tsv
Created October 4, 2022 16:11
Algorand Governance Period 4 rewards payout
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
tx_num round
500 23893891
500 23893894
500 23893896
500 23893898
3 23893900
497 23893901
500 23893903
500 23893905
135 23893907
@d13co
d13co / gov-5-lp-assets-1664943974.json
Last active October 5, 2022 04:35
Gov 5 LP commitment - Partial - Wed 5 Oct 04:28:07 UTC 2022
[
{
"name": "TinymanPool1.1 USDC-ALGO",
"com": 416181532743,
"usd_value": 573878.0677315898
},
{
"name": "AF-POOL-ALGO-DEFLY-75.0BP",
"com": 2575693300971,
"usd_value": 212325.88561845387
@d13co
d13co / gen.sh
Last active June 26, 2023 21:44
calculate participation key generation factors
#!/bin/bash
set -e
address=$1
duration=$2
duration=${duration:-650000}
if [ "$address" == "" ]; then
echo "Usage: $0 <address> [<duration>]"
@d13co
d13co / gen.sh
Last active August 26, 2023 09:37
algokey-gen.sh
#!/bin/bash
# Author: @D13_co
# Context: https://d13.co/posts/redundant-participation-nodes-on-algorand/
set -e
# first argument: address
address=$1