I want to decode the contract call data and event data saved in a block. How can I do that?
Having this data in hex format, you can decode it using cargo-contract command line utility simply like this (run from the contract src folder):
cargo contract decode -d <data_hex_string> -t message
You can decode event and constructor data in the same way by running it with
-t event and
-t constructor accordingly.