EVM Codes - An Ethereum Virtual Machine Opcodes Interactive Reference
Explore any contract, externally owned account, or transaction on Ethereum and Avalanche. With contract interaction, an unrivaled representation of storage, and transaction tracing and simulation, evm.storage is the blockchain explorer designed for you. Try it out Index 1 is top of the stack. See PUSH. Creates a new sub context and execute the code of the given account, then resumes the current one. Note that an account with no code will return success as true. If the size of the return data is not known, it can also be retrieved after the call with the instructions RETURNDATASIZE and RETURNDATACOPY (since the Byzantium fork). From the Tangerine Whistle fork, gas is capped at all but one 64th (remaining_gas / 64) of the remaining gas of the current context. If a call tries to send more, the gas is changed to match the maximum allowed. If the caller doesn't have enough balance to send the value, the call fails but the current context is not reverted. See in playground. The state changes
00 STOP 0 Halts execution 01 ADD 3 a b a + b Addition operation 02 MUL 5 a b a * b Multiplication operation 03 SUB 3 a b a - b Subtraction operation 04 DIV 5 a b a // b Integer division operation 05 SDIV 5 a b a // b Signed integer division operation (truncated) 06 MOD 5 a b a % b Modulo remainder operation 07 SMOD 5 a b a % b Signed modulo remainder operation 08 ADDMOD 8 a b N (a + b) % N Modulo addition operation 09 MULMOD 8 a b N (a * b) % N Modulo multiplication operation 0a EXP 10 a exponent a ** exponent…
saved by
related reading
- EVM Codesevm.codes
- REVM Is All You Need. How to build simulated blockchain… | by Solid Quant | Mediummedium.com
- revm/documentation/src/crates/precompile.md at b7b92aee232558ea48e9580bfac74d442a17babd · bluealloy/revmgithub.com
- Contract ABI Specification — Solidity 0.8.38-develop documentationdocs.soliditylang.org
- Blake2b F precompile by pdyraga · Pull Request #4 · keep-network/go-ethereumgithub.com
- Introduction to Smart Contracts — Solidity 0.8.38-develop documentationdocs.soliditylang.org
- solidity - Are there any examples of using precompiled contracts? - Ethereum Stack Exchangeethereum.stackexchange.com
- solidity - How to use Ethereum precompile bn256Pairing to check equality on symmetric groups? - Ethereum Stack Exchangeethereum.stackexchange.com
- GitHub - foundry-rs/forge-std: A collection of helpful contracts and libraries for use with Forge and Foundrygithub.com
- The Ethereum Virtual Machine — How does it work? | by Luit | MyCrypto | Mediummedium.com
- Understand EVM bytecode – Part 1blog.trustlook.com
- Mediumsteveng.medium.com