finished up an initial version of the transactions api