Add transaction block helper

Back by popular demand.

@astigsen @bmunkholm @jpsim