The bitcoin opcode seems to have a flat rate The bitcoin opcode seems to have a flat rate, is that correct?
Or, if bitcoin has a price per opcode, please give me the link.
If it is a flat rate, please tell me why bitcoin does not have a mechanism like ethereum.
If by &quot;flat rate&quot; you mean that each opcode costs the same amount in transaction fees, then yes, Bitcoin does have a &quot;flat rate&quot;. Opcodes don't have a direct fee themselves, the fee is based on the size of the transaction, and since each opcode is one byte, they have the same cost.
It is unnecessary to have an opcode cost scheme like Ethereum because opcodes are not very computationally expensive and do not have the same effects as Ethereum opcodes do. Bitcoin script is not Turing complete so it is impossible to loop. Each opcode can only be run a single time.
Furthermore, the more computationally expensive signature verification opcodes do have an additional cost in the form of the &quot;signature operations&quot; (sigops) limit. Sigops are factored into the calculation of a transactions weight which will then effect the transaction fee, but this effect is only present in extreme cases where there are a lot of sigops in a single transaction. Blocks are limited in the number of sigops that they can include.