This example code has a few options. The necessary type information to decode historic blocks and storage entries is found at https://github.com/paritytech/frame ...