LockMetadata
@iota/notarization API documentation
Class: LockMetadata
Time-based access restrictions attached to a notarization at creation.
Remarks
deleteLock cannot be TimeLockType.UntilDestroyed, and its
unlock time must be no earlier than the unlock times of updateLock and
transferLock — on-chain creation aborts otherwise.
Permitted lock configurations depend on the NotarizationMethod:
Dynamic:updateLockis fixed to TimeLockType.None;transferLockmay carry any TimeLock variant.Locked: bothupdateLockandtransferLockare fixed to TimeLockType.UntilDestroyed — Locked-Notarizations are non-transferable and their state is immutable.
Properties
deleteLock
deleteLock:
TimeLock
Lock gating destruction. Cannot be TimeLockType.UntilDestroyed; its unlock time must be ≥ both other locks' unlock times.
transferLock
transferLock:
TimeLock
Lock gating ownership transfer.
Value depends on the Notarization Method:
Dynamic: any TimeLock variant — controls when ownership transfer is permitted.Locked: fixed to TimeLockType.UntilDestroyed — Locked-Notarizations are non-transferable.
updateLock
updateLock:
TimeLock
Lock gating state and metadata updates.
Value depends on the Notarization Method:
Dynamic: fixed to TimeLockType.None — state and updatable metadata are always replaceable via:Locked: fixed to TimeLockType.UntilDestroyed.
Methods
toJSON()
toJSON():
Object
- Return copy of self without private attributes.
Returns
Object
toString()
toString():
string
Return stringified version of self.
Returns
string