The E8 nanobody as a lead could be used for the rapid imaging detection of CDH17-positive gastric cancer and highly efficiently deliver toxin PE38 into tumor tissues. The gene discussed is CDH17; the disease is gastric cancer.