Opcodes · stack · enabled

OP_PICK (0x79)

Pops n, then copies the item n places back to the top.

Verified
Stack in → out
… x … n → … x … x
Since
Original Bitcoin script
Cost
Base instruction cost 100 plus bytes pushed (2025 VM limits).
Bitcoin status
Same in Bitcoin (BTC)

Example

OP_1 OP_2 OP_3 OP_2 OP_PICK

Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.

Sources

  1. Libauth BCH_2023_05 opcodes (bch-2023-opcodes.ts)