From the other hand, if you intend to connect your Grid Tie to the city pole, you might need to request a permission to do all that modification.
It's a full blown contract with the utility with strict requirements, a connection fee and a negotiated rate for your excess production
that may be less than they charge for consumption.
If I was setting up solar, mining would likely not be included.