Overview of the Anyone-Can-Pay Lock Script
The Anyone-Can-Pay Lock Script allows users to send any amount of CKB or sUDT to a Cell without meeting the traditional minimum 61 CKBytes requirement. This is primarily used for small-value token transfers and micro-transactions. It supports two unlocking modes:
- Signature-Based Unlocking: If a valid signature matching the lock's public key hash is provided, the owner can spend the Cell normally.
- Non-Signature Unlocking (Anyone Can Pay): Allows anyone to add CKB or UDT to the cell without a signature, provided strict validation rules are met: only one input and one output Cell per unique Lock + Type Script pair, the output value must not be less than the input, and optional minimum thresholds must be satisfied.