Implement `get_tx_id`