In terms of programming viewpoint I think most of the languages have libraries for that stuff now. Just check API docs like web3js.readthedocs.io/en/v1.5…
Same as for @singhshashi. I can't code more than 5-6 hours per day. To be honest, I believe nobody can do and write a good code.
I usually do coding for my side projects in the morning for about 1-2 hours. Then I switch on different activities like making YouTube videos or writing until the first meal. After food, I work for my part-time job coding for 4-5 more hours and I'm done for the day.
The most productive day is definitely before the first meal (around noon) for me.