evm_disassemble
Table function
Disassembles EVM bytecode into core instruction metadata using evmone's advanced analysis. Returns 22 essential columns: pc, label, mnemonic, opcode, push_value (BYTES32), instruction properties, stack analysis, block structure, and gas costs from evmone. For comprehensive analysis including CFG, function detection, memory tracking, and dominance analysis, use evm_disassemble_full().
Overloads
evm_disassemble(BYTES)
Disassembles bytecode using Cancun EVM revision (22 core columns).
Parameters
| Name | Type |
|---|---|
| bytecode | BYTES |
Result columns
| Name | Type |
|---|---|
| pc | INTEGER |
| label | VARCHAR |
| mnemonic | VARCHAR |
| opcode | UTINYINT |
| push_value | BYTES32 |
| push_length | UTINYINT |
| push_truncated | BOOLEAN |
| instruction_size | UTINYINT |
| is_terminating | BOOLEAN |
| is_jumpdest | BOOLEAN |
| is_reachable | BOOLEAN |
| block_id | INTEGER |
| is_block_start | BOOLEAN |
| is_block_end | BOOLEAN |
| block_entry_stack | SMALLINT |
| block_max_stack | SMALLINT |
| stack_depth | SMALLINT |
| stack_req | UTINYINT |
| stack_change | TINYINT |
| gas_cost | SMALLINT |
| block_gas_cost | INTEGER |
| analysis_instr_index | INTEGER |
1
SELECT pc, label, mnemonic
2
FROM evm_disassemble(
3
get_code($transport, '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'::address) -- Base USDC
4
)
5
ORDER BY pc;
Notebook ready in readonly mode.