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

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

Word OP_9 Opcode 89 Hex 0x59 Input Nothing Output 9 The number 9 is pushed onto the stack.

Link to this section Summary

Functions

Returns <<0x59>>

The number 9 is pushed onto the stack.

v()

Returns 0x59

Link to this section Functions

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

Returns <<0x59>>

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Nine.encode()
<<0x59>>
Link to this function

execute(nine, remaining)

View Source

The number 9 is pushed onto the stack.

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Nine.execute(
...>  %BitcoinLib.Script.Opcodes.Constants.Nine{},
...>  [3]
...> )
{:ok, [9, 3]}
@spec v() :: 89

Returns 0x59

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Nine.v()
0x59