CHAIN
Check balances and decode transactions on Linea from the command line
Everything glnc can do on Linea: 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/glncBalance on Linea
glnc auto-detects Linea from the address format. To restrict a multi-chain query to Linea only, pass --chain linea.
glnc balance 0x... --chain lineaDecode a Linea transaction
Pass a hash and (optionally) --chain linea to skip cross-chain probing. glnc decodes calldata and walks token movements out of the receipt logs.
glnc tx 0xabc... --chain lineaLinea gas right now
Live percentile fee tiers from eth_feeHistory across the last 64 blocks, plus a USD estimate at the current Linea native price.
glnc gas --chain lineaAliases
Every alias resolves to the same chain. Pass any of them to --chain:
glnc balance 0x... --chain lineaLinea-specific notes
What makes Linea different
Linea is a zkEVM rollup built by ConsenSys. Unlike some zkEVM designs that reach EVM-compatibility at the higher Solidity level, Linea is fully EVM-bytecode-equivalent: contracts compiled for Ethereum run on Linea without modification, and the same opcodes produce the same gas costs (with a separate L2 fee component layered on top). That equivalence is the reason existing tooling, glnc included, works on Linea with only chain-specific configuration rather than a bespoke adapter.
- Native gas token is ETH, bridged through the canonical Linea bridge from Ethereum mainnet. Balance and gas estimates are priced in ETH and converted to USD through the same feed glnc uses on every EVM chain.
- Ecosystem is MetaMask-first by virtue of ConsenSys owning both products. RPC endpoints are stable and free; the public PublicNode endpoint glnc defaults to has handled every workload thrown at it so far.
- L2 fees are extremely low in practice. The percentile spread between p10 and p90 priority fees on Linea is usually flat at the gwei-fraction level, which is why glnc renders the same columns as Ethereum but rarely shows interesting variance.
Unpriced tokens caveat
Native ETH on Linea is priced normally through CoinGecko. Some ERC-20 token contracts on Linea do not yet have canonical mappings in the CoinGecko feed (the bridged stablecoin set, the Linea-native tokens that have not yet been listed), and glnc fails closed rather than guess. The default is to mark those balances as noPrice; the alternative would be inheriting prices from a spoofed contract sharing a symbol, which is worse than silence.
Pass --show-unpriced to see every token, including the ones with — in the USD column. A trailing + on the grand total flags the figure as a lower bound while unpriced assets remain in the wallet.
When to use glnc on Linea
Same shape as zkSync: when you want to script against a Linea wallet without juggling the Linea block explorer's API tier or threading an API key through your environment. glnc balance ... --chain linea --json emits the standard versioned envelope; pipe it into jq for monitoring or hourly exports. glnc tx <hash> --chain linea decodes bridged-asset movements with the same calldata decoder used on mainnet, so a USDC transfer on Linea reads exactly the way you would expect.