New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain CBDE Exam - Topic 2 Question 102 Discussion

Actual exam question for Blockchain's CBDE exam
Question #: 102
Topic #: 2
[All CBDE Questions]

The difference between address.send() and address.transfer() is:

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Leslie
3 months ago
Nah, .send is fine if used correctly!
upvoted 0 times
...
Carmelina
3 months ago
I think both are low-level and can be dangerous.
upvoted 0 times
...
Trinidad
3 months ago
Wait, .send sends all gas? That sounds risky!
upvoted 0 times
...
Dahlia
4 months ago
Totally agree, .transfer is safer!
upvoted 0 times
...
Caprice
4 months ago
.send returns a Boolean, right?
upvoted 0 times
...
Lindsey
4 months ago
I feel like I read that .call.value()() is safer, but I can't recall the specifics on how .send and .transfer differ exactly.
upvoted 0 times
...
Maryann
4 months ago
I'm a bit confused; I thought both .send and .transfer were safe against re-entrancy, but now I'm not so sure.
upvoted 0 times
...
Dominque
4 months ago
I remember practicing a question like this, and I think .send is considered more dangerous because it can send all the gas.
upvoted 0 times
...
Kassandra
5 months ago
I think .send returns a Boolean and .transfer throws an exception, but I'm not sure about the gas stipend part.
upvoted 0 times
...
Loreta
5 months ago
I remember learning about this, but I'm a bit fuzzy on the details now. I think it has something to do with the gas usage and error handling, but I'll need to think it through step-by-step to be sure I've got the right answer.
upvoted 0 times
...
Glory
5 months ago
Okay, I've got this. .send() returns a boolean and .transfer() throws an exception on error. But the more important difference is that .transfer() only sends the gas stipend of 2300, while .send() sends all the gas, which can be dangerous.
upvoted 0 times
...
Lamar
5 months ago
Hmm, I'm a bit unsure about this one. I know they're both ways to send Ether, but I can't quite remember the specifics of how they differ. I'll have to review my notes carefully.
upvoted 0 times
...
Belen
5 months ago
I'm pretty confident I know the difference between .send() and .transfer(). I think it has to do with how they handle errors, but I'll double-check the details.
upvoted 0 times
...
Edison
5 months ago
I think sustainability is definitely one of the key outcomes here, but I'm not sure about the second one.
upvoted 0 times
...
Sanjuana
1 year ago
Hmm, I was under the impression that .send is the dangerous one because it sends all the gas, while .transfer only sends the 2300 gas stipend. But I could be wrong.
upvoted 0 times
Francine
1 year ago
D) .send and .transfer are both considered low-level functions which are dangerous, because they send all gas along. It's better to use address.call.value()() to control the gas-amount.
upvoted 0 times
...
Thersa
1 year ago
C) .send returns a Boolean and .transfer throws an exception on error. .send is considered dangerous, because it sends all gas along, while .transfer only sends the gas stipend of 2300 gas along
upvoted 0 times
...
Hyman
1 year ago
A) .send returns a Boolean and .transfer throws an exception on error. Both just forward the gasstipend of 2300 gas and are considered safe against re-entrancy.
upvoted 0 times
...
...
Lachelle
1 year ago
That's an interesting point, but I still think A is the correct answer based on the gas stipend and safety against re-entrancy.
upvoted 0 times
...
Brittni
1 year ago
I disagree, I believe the answer is C. .send is considered dangerous because it sends all gas along.
upvoted 0 times
...
Lachelle
1 year ago
I think the answer is A, because .send returns a Boolean and .transfer throws an exception on error.
upvoted 0 times
...
Kenny
1 year ago
Wait, isn't it the other way around? .send throws an exception and .transfer returns a Boolean on error. I'm pretty sure that's the difference.
upvoted 0 times
Lemuel
1 year ago
D) .send and .transfer are both considered low-level functions which are dangerous, because they send all gas along. It's better to use address.call.value()() to control the gas-amount.
upvoted 0 times
...
Justine
1 year ago
C) .send returns a Boolean and .transfer throws an exception on error. .send is considered dangerous, because it sends all gas along, while .transfer only sends the gas stipend of 2300 gas along
upvoted 0 times
...
Helaine
1 year ago
B) .send throws an exception and .transfer returns a Boolean on error. Both just forward the gasstipend of 2300 gas and considered safe against re-entrancy
upvoted 0 times
...
Evangelina
1 year ago
A) .send returns a Boolean and .transfer throws an exception on error. Both just forward the gasstipend of 2300 gas and are considered safe against re-entrancy.
upvoted 0 times
...
...
Shonda
1 year ago
I think the difference is that .send returns a Boolean and .transfer throws an exception on error. Both just forward the gasstipend of 2300 gas and are considered safe against re-entrancy.
upvoted 0 times
Florinda
1 year ago
Yes, that's correct. Both just forward the gasstipend of 2300 gas and are safe against re-entrancy.
upvoted 0 times
...
Billye
1 year ago
I agree, .send returns a Boolean and .transfer throws an exception on error.
upvoted 0 times
...
...

Save Cancel