add batch transaction flow with the c program