implement handler for trx_inv and get_trx_inv