View Source BitcoinLib.Script.Opcodes.Stack.Drop (BitcoinLib v0.4.7)
Based on https://en.bitcoin.it/wiki/Script
Word OP_DROP Opcode 117 Hex 0x75 Input x Output nothing Removes the top stack item.
Link to this section Summary
Link to this section Types
@type t() :: BitcoinLib.Script.Opcodes.Stack.Drop
Link to this section Functions
Returns <<0x75>>
examples
Examples
iex> BitcoinLib.Script.Opcodes.Stack.Drop.encode()
<<0x75>>
Removes the top stack item.
examples
Examples
iex> stack = [4, 3]
...> %BitcoinLib.Script.Opcodes.Stack.Drop{}
...> |> BitcoinLib.Script.Opcodes.Stack.Drop.execute(stack)
{:ok, [3]}
@spec v() :: 117
Returns 0x75
examples
Examples
iex> BitcoinLib.Script.Opcodes.Stack.Drop.v()
0x75