Single Use Lock
Single Use Lock is a Lock Script that allows unlocking only when a specific OutPoint is consumed.
It is part of the ckb-proxy-locks.
How It Works
- Takes an outpoint (36 bytes) as an argument
args[0..36]: The specific OutPoint that must be consumed
- Passes validation only if the specific OutPoint appears in the transaction inputs. This ensures the Cell locked with this Script can only be unlocked once.
Use Cases
- One-time payments
- Voucher systems
- Single-use authorizations
Deployment
- Mainnet
parameter | value |
---|---|
code_hash | 0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf |
hash_type | data1 |
tx_hash | 0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b |
index | 0x4 |
dep_type | code |
- Testnet
parameter | value |
---|---|
code_hash | 0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf |
hash_type | data1 |
tx_hash | 0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93 |
index | 0x4 |
dep_type | code |