The activation heights are known for mainnet and testnet, so they can be hard-coded and RPC does not need to be used.