Send payable value
Fund the active call and forward ether to another contract.
Solidity 0.8.36REPL mode
Why use this example
Use this pattern when the answer depends on transaction fields, block data, chain identity, payable value, or live RPC state. The entry isolates send payable value so its input, result, and state changes stay easy to compare.
Solidity to run
contract Vault {
uint256 public received;
receive() external payable { received += msg.value; }
}
Vault vault = new Vault()
(bool ok,) = address(vault).call{ value: 1 ether }("")
ok
vault.received()What to expect
The low-level payable call succeeds and the Vault reports that it received 1 ether.
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 execution controls Deployed contract investigation