i had a local host 8545 account and accidentally deleted it but i have no idea how to get it back. and it just keeps saying Could not fetch chain ID. Is your RPC URL correct? and im just on a pc
The localhost network is use to connect to a local node or a local fork (run with Hardhat or Ganache).
If you want to get it back, you can add it in your metamask networks : https://metamask.zendesk.com/hc/en-us/articles/360043227612-How-to-add-a-custom-network-RPC.
You need to specify the ChainId according to the blockchain you want to interact with (1 for Ethereum, 56 for BSC, 137 for Polygon...).
If you don't wan't to connect to a local network, you don't need to add it back, you can just use a public RPC to connect your wallet to the blockchain you want.