Add getTransaction method

Signed-off-by: Daniel Bondergaard <danielboendergaard@gmail.com>