GetOpName

Returns the mnemonic name of an opcode.

Synopsis

Declared in <script/script.h>

std::string
GetOpName(opcodetype opcode);

Return Value

The name of opcode, or "OP_UNKNOWN" if unrecognized.

Parameters

NameDescription
opcodeOpcode to name.