add transaction query and post functions. more testing is needed