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

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

Word OP_10 Opcode 90 Hex 0x5a Input Nothing Output 10 The number 10 is pushed onto the stack.

Link to this section Summary

Functions

Returns <<0x5a>>

The number 10 is pushed onto the stack.

v()

Returns 0x5a

Link to this section Functions

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

Returns <<0x5a>>

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Ten.encode()
<<0x5a>>

The number 10 is pushed onto the stack.

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Ten.execute(
...>  %BitcoinLib.Script.Opcodes.Constants.Ten{},
...>  [3]
...> )
{:ok, [10, 3]}
@spec v() :: 90

Returns 0x5a

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Ten.v()
0x5a