Adding transactions API