balogh.vilmos
5 days ago  Karma: 15
msg.value in Solidity

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

en
solidity
balogh.vilmos
5 days ago  Karma: 15
msg.value in Solidity

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

en
solidity

3 ANSWERS
maxpeinas
5 days 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
5 days ago Karma: 703

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
5 days ago Karma: 141

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