I want to calculate average gas price of several blocks (in Gwei), however I don't see how a field on blocks for gasPrice. Do I have to calculate it by grabbing the gasPrice of each transaction in each block and finding the average that way?
Also how would I calculate average block size (in mgas)?