Skip to main content
glnc

CHAIN

Check balances and decode transactions on Optimism from the command line

Everything glnc can do on Optimism: balance lookup, transaction decoding, and live gas. Examples below are copy-pasteable; swap the address or hash for your own.

Quick install

On macOS or Linux:

brew install aryarahimi1/glnc/glnc
glnc 1.0.9 ready · Optimism support built in

Balance on Optimism

glnc auto-detects Optimism from the address format. To restrict a multi-chain query to Optimism only, pass --chain op.

glnc balance 0x... --chain optimism
⬢ OPTIMISM (14 tokens)
ETH 0.420 $1,364.20
OP 230.00 $483.00
USDC 6,420.12 $6,420.12
─────────────────────────────
Grand Total $8,267.32

Decode a Optimism transaction

Pass a hash and (optionally) --chain op to skip cross-chain probing. glnc decodes calldata and walks token movements out of the receipt logs.

glnc tx 0xabc... --chain optimism
✓ ERC-20 transfer on ⬢ OPTIMISM
Token movements:
− 1,000.00 OP you → 0xfe2c…0042
gas: 51,210 × 0.0001 gwei · $0.00

Optimism gas right now

Live percentile fee tiers from eth_feeHistory across the last 64 blocks, plus a USD estimate at the current Optimism native price.

glnc gas --chain optimism
Chain base p10 p50 p90 block fast avg
optimism 0.001 0.0001 0.0001 0.001 ~2s $0.00 $0.00

Aliases

Every alias resolves to the same chain. Pass any of them to --chain:

glnc balance 0x... --chain op
accepted aliases: op, optimism