Quiz Entry - updated: 2026.07.30
What does the payable keyword do in Solidity?
It marks a function (or address) as able to receive the chain's native currency; without it, a function rejects any attached value.
Contracts, like wallets, have addresses and can hold a balance. Remix shows payable functions as red buttons. To send funds out to a caller you must cast the address to payable, e.g. payable(msg.sender).