Skip to main content

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
parametervalue
code_hash0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf
hash_typedata1
tx_hash0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b
index0x4
dep_typecode
  • Testnet
parametervalue
code_hash0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf
hash_typedata1
tx_hash0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93
index0x4
dep_typecode