Solidity REPL
Encoding & crypto

Decode call data

Read the supplied transaction bytes as typed Solidity values.

Solidity 0.8.36REPL mode

Why use this example

Use this pattern when you need to check the exact bytes, selector, hash, or decoded values that Solidity will produce. The entry isolates decode call data so its input, result, and state changes stay easy to compare.

Solidity to run

(uint256 amount, address recipient) = abi.decode(msg.data, (uint256, address))
amount
recipient

What to expect

The prefilled calldata decodes into amount 42 and the recipient address ending in BEEF.

Continue the investigation

Change a value, add another expression, or open Inspect after the run. Accepted entries remain available to the next entry, and the clean replay keeps the complete result reproducible.

Read about values and inspection Prototype Solidity behavior