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

1 Like

Thanks Ivan. I rushed hereā€¦ many hours programming lol.

2 Likes