Skip to main content

Does the Send Function Have the Same Gas Limitations as Transfer ?

Yes, the send function also forwards a fixed gas stipend of 2,300, making it similar to transfer in terms of reentrancy prevention. However, send differs in that it does not automatically revert the transaction upon failure.

It returns a boolean success value, requiring the developer to explicitly check this value and handle the failure, which is an additional security consideration.

What Is a “Gas Stipend” in the Context of External Calls?
What Is the Concept of ‘Revert’ in Smart Contract Execution?
How Does the Security Model of Slashing Compare to Proof-of-Work Mining Difficulty Adjustments?
How Does a PoS Network Recover from a Successful 51% Attack?