create transaction and transfer credits