working on tx endpoint