Added an endpoint to retrieve transaction statistics