In your first code snippet your code describes a TransactionInput structure - not a Block structure. Do you have a Block example?
It's now fixed.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.