undefined

is not a valid block on the bitcoin network

block hashes on the bitcoin network are 64 hexadecimal characters. They can be numbers or letters from a-f (abcdef)