Smart Account Reference
Fallback Handler
receive

receive

Receive function accepts native token transactions.

Usage


_10
interface ISafe {
_10
receive() external payable;
_10
}
_10
_10
contract Example {
_10
function example() ... {
_10
(ISafe safe).receive();
_10
}
_10
}

Events

SafeReceived


_10
event SafeReceived(address sender, uint256 value)

Emitted when the Safe contract receives a payment.

Was this page helpful?