A blockchain-based sensitive word detection method, which relates to the technical field of blockchains, and comprises: when a write request for a blockchain is received, acquiring a method function used for executing the write request (S202); when a sensitive word detection annotation is added at a preset position of a hierarchy to which the method function belongs, then parsing a pre-defined sensitive detection part and sensitive detection condition from the sensitive word detection annotation (S204); searching for a component belonging to the sensitive detection part from among components comprised in the write request, and extracting parameter data comprised in the found component (S206); screening out parameter data to be detected that needs to be detected for sensitive words from among the parameter data according to the sensitive detection condition (S208); and performing sensitive word detection processing on the parameter data to be detected (S210).
展开▼