when i click on realms instead of taking me to all of the different realms there comes up an error that says "realm (429)" and i tried restarting both minecraft and my computer and it still doesnt work, i have also tried to run the minecraft launcher as an administrator and it still does not work.
This appears to be a duplicate of REALMS-6147. If you feel that this issue is affecting you, feel free to vote for the duplicated ticket, to give Mojang a basic idea of how many people are impacted by the problem. Just to further inform you, this will not determine how quickly the bug gets handled or fixed. Like I said earlier, it just gives the team a general understanding. Additionally, please make sure that you are able to reproduce this issue in a vanilla environment, as I noticed you mentioned this issue occurred whilst using OptiFine and this modification, isn't support by Mojang therefore making this report invalid. Since this can be reproduced in an unmodified environment however, it will most likely get marked as a duplicate.