@aldea/sdk / Exports / instructions / LockInstruction
Class: LockInstruction
instructions.LockInstruction
Lock Instruction.
Locks a instance to the given pubkeyHash.
Hierarchy
↳
LockInstruction
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new LockInstruction(idx
, pubkeyHash
): LockInstruction
Parameters
Name | Type |
---|---|
idx | number |
pubkeyHash | Uint8Array |
Returns
Overrides
Defined in
packages/core/dist/instructions/lock.d.ts:10
Properties
idx
• idx: number
Defined in
packages/core/dist/instructions/lock.d.ts:8
opcode
• opcode: OpCode
Inherited from
Defined in
packages/core/dist/instruction.d.ts:26
pubkeyHash
• pubkeyHash: Uint8Array
Defined in
packages/core/dist/instructions/lock.d.ts:9
Methods
toBytes
▸ toBytes(): Uint8Array
Returns
Uint8Array
Inherited from
Defined in
packages/core/dist/instruction.d.ts:29
fromBytes
▸ fromBytes(bytes
): Instruction
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
Inherited from
Defined in
packages/core/dist/instruction.d.ts:28