CHAIN
Check balances and decode transactions on Polygon from the command line
Everything glnc can do on Polygon: 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/glncglnc 1.0.9 ready · Polygon support built in
Balance on Polygon
glnc auto-detects Polygon from the address format. To restrict a multi-chain query to Polygon only, pass --chain poly.
glnc balance 0x... --chain polygon ⬢ POLYGON (18 tokens)
POL 4,210.00 $1,684.00
USDC 9,840.21 $9,840.21
WMATIC 1,200.00 $480.00
─────────────────────────────────
Grand Total $12,004.21
Decode a Polygon transaction
Pass a hash and (optionally) --chain poly to skip cross-chain probing. glnc decodes calldata and walks token movements out of the receipt logs.
glnc tx 0xabc... --chain polygon ✓ Swap via Uniswap V3 SwapRouter on ⬢ POLYGON
Token movements:
− 500.00 USDC you → 0x1f98…6984
+ 1,247.31 POL 0x1f98…6984 → you
gas: 187,432 × 32.5 gwei · $0.003
Polygon gas right now
Live percentile fee tiers from eth_feeHistory across the last 64 blocks, plus a USD estimate at the current Polygon native price.
glnc gas --chain polygon Chain base p10 p50 p90 block fast avg
polygon 34.2 30.0 32.5 40.1 ~2s $0.01 $0.005
Aliases
Every alias resolves to the same chain. Pass any of them to --chain:
glnc balance 0x... --chain poly accepted aliases: poly, matic, polygon