Blockchains are immutable — once data is written on-chain, it cannot be deleted. If your application allows user-submitted content, illegal information that reaches the blockchain stays there permanently and creates compliance risk with no remediation path. Integrating Alibaba Cloud Blockchain as a Service (BaaS) with Alibaba Cloud Content Moderation prevents this at the source: every time a smart contract is invoked through the BaaS REST API, Content Moderation automatically reviews the parameter settings to prevent illegal information from being uploaded to the blockchain.
How it works
When your application submits an on-chain transaction through the BaaS REST API, Content Moderation automatically reviews the parameter settings. If the content passes review, the data is uploaded to the blockchain. If the content fails review, the upload is prevented.
Prerequisites
Before you begin, ensure that you have:
Installed the cloud service integration module
Connected to the blockchain network using the REST API
Integrate BaaS with Content Moderation
In the My Organizations section, find the target organization and click Cloud service integration on the right.
Click the Content Moderation tab.
Click Condition detection to check the current integration status.
If you have not enabled the Alibaba Cloud Content Moderation service, click Enable service.
If you have not authorized Alibaba Cloud BaaS to access Content Moderation, click Authorization Service to authorize Alibaba Cloud BaaS.
When the following screen appears, the integration is complete.

What's next
After integration is complete, upload data to your blockchain: