codepythonmit
onchain-notes
the numbers i look at before writing anything: prices, base fee, fear & greed, tvl by chain, btc dominance. one card, one screen, plus what a transfer, a swap and a mint cost right now, in cents.
head 43454b12026-09-0812 files201 lines of python
record
- commits
- 6 on main, 2026-09-08 to 2026-09-08
- signed
- 6 good signature from 17BA…F3AB
- tests
- 10 passed
python 3.11.9 on my machine, 2026-09-23 - ci
- ci.yml lists python 3.10, 3.12.
- history
- every commit up to 43454b1, each with its signed record. the history itself stays off this site, so from here you cannot tie a file to a commit.
- source
- onchain-notes.tar.gz, 6.6 KB · sha256
5c11852935d3…: the files at 43454b1, without README.md, which is shown below. - license
- mit (LICENSE)
readme
rendered from README.md at 43454b1. i left out the badges, which load from github and shields.io, and one link, which shows as plain text.
onchain-notes
small scripts i use to look at chains before i post anything. public data only, no api keys, nothing but the python standard library.
i am alina, i live in berlin and i post the numbers on x and the longer notes on alinaschanz.life.
what is here
| script | what it does |
|---|---|
daily_card.py |
prices (coingecko), ethereum base fee + blob fee (public rpc), base and arbitrum base fees, the solana priority fee, fear & greed (alternative.me), tvl by chain (defillama), btc dominance. one card, one screen. |
gas_now.py |
what a transfer / swap / mint costs on mainnet right now, in cents. base fee plus the median tip of the last 20 blocks. |
run
python daily_card.py
python daily_card.py --json
python gas_now.py
python 3.10 or newer. no pip install needed. tests: python -m pytest -q.
sample
$ python daily_card.py
-- 2026-09-07T22:17+00:00 --
btc $79,139 -0.7% 24h
eth $2,488 -0.4% 24h
sol $104 -1.4% 24h
gas base 0.0483 gwei blob 0.00271 gwei (block 25928407)
f&g 71 greed (week ago 62)
dom btc 59.1%
tvl ethereum $49.6b / solana $5.9b / bsc $5.7b / base $5.6b / tron $5.5b
$ python gas_now.py
base fee 0.0483 gwei / median tip last 20 blocks 0.0222 gwei / eth $2,488
eth transfer 21,000 gas 0.37 cents
erc20 transfer 65,000 gas 1.14 cents
uniswap swap 150,000 gas 2.63 cents
nft mint 200,000 gas 3.51 cents
sources
- prices, dominance, charts: coingecko public api
- fees: any ethereum json-rpc,
eth_feeHistory(defaults to publicnode, drpc, mevblocker) - sentiment: alternative.me fear & greed
- tvl: defillama
why
most of what i post is a screenshot of one of these plus a sentence. keeping the scripts public means anyone can check the number instead of trusting the sentence.
not financial advice. numbers, not calls.
see also
the same idea, grown into proper packages:
- gasweek: base fee by hour of day over the last week, table and svg
- bigmoves: large stablecoin, weth and wbtc transfers, with exchange labels
- stablepeg: are the stablecoins still a dollar, read from uniswap and curve
- ens-lookup: ens names to addresses and back, text records included
license
files
| path | lines | bytes |
|---|---|---|
.editorconfig# | 15 | 233 |
.github/dependabot.yml# | 8 | 237 |
.github/workflows/ci.yml# | 31 | 688 |
.gitignore# | 3 | 26 |
.pre-commit-config.yaml# | 13 | 321 |
CHANGELOG.md# | 15 | 581 |
LICENSE# | 21 | 1,069 |
README.md# | shown above | |
daily_card.py# | 183 | 6,978 |
gas_now.py# | 67 | 2,530 |
pyproject.toml# | 10 | 191 |
tests/test_daily_card.py# | 78 | 2,873 |
history
the latest 6 commits. all 6, with the signature of each: the commit list.