Add transaction API