Params in payable function

Guys …I verify that a payable function (solidity) doesn’t accept parameter as in a “normal” function … I can’t do like this: functionname (uint256 cod) payable external {}

but can I pass parameter to it through web3? if so, how do I get these parameters? with msg.data?

https://docs.moralis.io/moralis-server/web3/web3#executefunction

this is how you to this

Thanks Ivan. I rushed here… many hours programming lol.

2 Likes