This kind of `typeof` check might be slow. Why not directly pass these to `extractBlocktrans` and `extractTrans` since they do their own sanity checking.