View Source BitcoinLib.Script.Opcodes.Constants.Six (BitcoinLib v0.4.7)

Based on https://en.bitcoin.it/wiki/Script

Word OP_6 Opcode 86 Hex 0x56 Input Nothing Output 6 The number 6 is pushed onto the stack.

Link to this section Summary

Functions

Returns <<0x56>>

The number 6 is pushed onto the stack.

v()

Returns 0x56

Link to this section Functions

@spec encode() :: <<_::8>>

Returns <<0x56>>

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Six.encode()
<<0x56>>

The number 6 is pushed onto the stack.

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Six.execute(
...>  %BitcoinLib.Script.Opcodes.Constants.Six{},
...>  [3]
...> )
{:ok, [6, 3]}
@spec v() :: 86

Returns 0x56

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Six.v()
0x56