← Back to Glossary

Opcode

An operation code, or opcode, is a basic command of some computer languages.

An operation code, or opcode, is a basic command of some computer languages. Bitcoin’s scripting language, called Script, has its own set of opcodes. Each opcode is numbered and performs a limited, predefined function.

The combination of these opcodes and additional data such as addresses, public keys, and signatures can produce Bitcoin scripts. For example, the most common Bitcoin script is P2PKH, which is composed of 4 opcodes and a public key hash. This script is a type of ScriptPubKey, which is used to lock bitcoin such that only someone capable of producing the public key and a valid signature can spend it.

Opcode is a Bitcoin protocol specification that defines technical standards for how Bitcoin software operates. Onramp's Bitcoin glossary provides detailed educational resources on Opcode and other protocol-level concepts to help investors understand the technology underpinning their Bitcoin holdings.

Frequently Asked Questions

What is Opcode?

Opcode is a technical standard in the Bitcoin protocol that specifies how certain operations or data structures should be implemented. It helps ensure interoperability between different Bitcoin software implementations.

Why is Opcode important for Bitcoin?

Opcode improves Bitcoin's functionality, security, or efficiency. Technical standards like this ensure that all participants in the Bitcoin network follow consistent rules, maintaining network consensus.

How does Opcode affect Bitcoin investors?

While Opcode operates at the protocol level, Onramp ensures that clients benefit from these technical improvements through secure, up-to-date infrastructure for Bitcoin custody and transactions.

Multi-Institution Custody

Are you ready?

The best security available for your Bitcoin without the technical burden. It’s time to upgrade.

Sign up