This specification discloses a method, device, and medium for
drug supervision based on
blockchain. The method includes: dividing a
drug storage cabinet into multiple storage areas and collecting current environmental information and current
drug information from each
storage area; the current environmental information includes current temperature, current
humidity, and current light conditions; determining whether the drug is stored in a pre-defined
storage area based on the correspondence between drug type identifiers and multiple storage areas; if the drug is placed in a pre-defined
storage area, storing the current environmental information corresponding to the storage area on the
blockchain for monitoring the current environmental information within the storage area; issuing an early warning message; and determining the environmental control object to be adjusted based on the environmental information to be adjusted and the target storage area to be adjusted in the early warning message, and sending environmental control instructions to the environmental control object to be adjusted to achieve drug supervision.