Read a Contract With Viem
Example of a read-only ERC-20 metadata call on an explicitly configured EVM network.
The sample below demonstrates the shape of a contract read using Viem. Supply a verified network, RPC endpoint, and ERC-20 contract address before executing it. No SHYNZ production address is implied.
A read-only call can still involve untrusted data or unreliable endpoints. Validate the address and network independently; do not assume that a matching token name implies authenticity.