initial working on transaction api