balogh.vilmos
4 months ago  Karma: 75
msg.value in Solidity

I'm a newbie to Solidity. Kindly ask you to explain what msg.value is.

en
solidity
balogh.vilmos
4 months ago  Karma: 75
msg.value in Solidity

I'm a newbie to Solidity. Kindly ask you to explain what msg.value is.

en
solidity

3 ANSWERS
maxpeinas
4 months ago Karma: 20

When you send ETH to contract, msg.value will be equal to the amount sent. You can look at examples in Solidity docs

When you send ETH to contract, msg.value will be equal to the amount sent. You can look at examples in Solidity docs

ennvlxkm
4 months ago Karma: 761

msg.value (unit) specifies the number of wei (the smallest Ether denominator) sent with the message. Actually, the msg object represents the data sent in the transaction.

msg.value (unit) specifies the number of wei (the smallest Ether denominator) sent with the message. Actually, the msg object represents the data sent in the transaction.

petar.bejbi
4 months ago Karma: 161

Guys any active blockchain developers in here?

Guys any active blockchain developers in here?

Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER