Table of Contents

Class ArkadeOpcodeRegistry

Namespace
NArk.Arkade.Scripts
Assembly
NArk.Arkade.dll

Combined opcode-name registry covering both standard Bitcoin opcodes (via NBitcoin's NBitcoin.Op) and the Arkade extension opcodes from ArkadeOpcode. Mirrors the ts-sdk's OPCODE_NAMES / OPCODE_VALUES tables so ASM round-trips agree across SDKs.

public static class ArkadeOpcodeRegistry
Inheritance
ArkadeOpcodeRegistry
Inherited Members

Methods

GetOpcodeName(byte)

Returns the canonical name (with OP_ prefix) for an opcode byte, or OP_DATA_N for the data-push range 0x01–0x4b, or null if the byte has no assigned mnemonic.

public static string? GetOpcodeName(byte value)

Parameters

value byte

Returns

string

GetOpcodeValue(string)

Resolves an opcode name (with or without the OP_ prefix, plus the OP_DATA_N data-push pattern) to its byte value. Returns null if the name is unknown or the data-push number is out of range.

public static byte? GetOpcodeValue(string name)

Parameters

name string

Returns

byte?

IsArkadeOpcode(byte)

True if the byte value is in the Arkade extension opcode range.

public static bool IsArkadeOpcode(byte value)

Parameters

value byte

Returns

bool