Skip to content

@aldea/sdk / Exports / instructions / NewInstruction

Class: NewInstruction ​

instructions.NewInstruction

New Instruction.

Instantiates a new instance of a class. Args are passwed to the constructor.

Hierarchy ​

Table of contents ​

Constructors ​

Properties ​

Methods ​

Constructors ​

constructor ​

• new NewInstruction(idx, exportIdx, argsBuf): NewInstruction

Parameters ​

NameType
idxnumber
exportIdxnumber
argsBufUint8Array

Returns ​

NewInstruction

Overrides ​

Instruction.constructor

Defined in ​

packages/core/dist/instructions/new.d.ts:11

Properties ​

argsBuf ​

• argsBuf: Uint8Array

Defined in ​

packages/core/dist/instructions/new.d.ts:10


exportIdx ​

• exportIdx: number

Defined in ​

packages/core/dist/instructions/new.d.ts:9


idx ​

• idx: number

Defined in ​

packages/core/dist/instructions/new.d.ts:8


opcode ​

• opcode: OpCode

Inherited from ​

Instruction.opcode

Defined in ​

packages/core/dist/instruction.d.ts:26

Methods ​

toBytes ​

▸ toBytes(): Uint8Array

Returns ​

Uint8Array

Inherited from ​

Instruction.toBytes

Defined in ​

packages/core/dist/instruction.d.ts:29


fromBytes ​

▸ fromBytes(bytes): Instruction

Parameters ​

NameType
bytesUint8Array

Returns ​

Instruction

Inherited from ​

Instruction.fromBytes

Defined in ​

packages/core/dist/instruction.d.ts:28