BSV-ex v0.2.2 BSV.Script.OpCode View Source
Module for accessing OP code atoms and byte integers.
Link to this section Summary
Link to this section Functions
Returns a map of all OP codes.
Returns a tuple caintaining the OP code and OP code byte number, depending on the given OP code name or integer.
Examples
iex> BSV.Script.OpCode.get :OP_RETURN
{:OP_RETURN, 106}
iex> BSV.Script.OpCode.get "op_return"
{:OP_RETURN, 106}
iex> BSV.Script.OpCode.get 106
{:OP_RETURN, 106}
iex> BSV.Script.OpCode.get :UNKNOWN_CODE
nil