getBlock function

Determine the parameters in the block update