How can i write to smart contract function using moralis v2?

I am trying to connect my smart contract function using next buaat i dont have an idea to write to function.
Is the runContractFunction read only?

runContractFunction from moralis v2 sdk works only with read only functions

1 Like

ok. thanks! Any idea for how can i write to smart contracts using moralis v2?

if you want to call write function you can use directly libraries as web3 or ethers in backend and in front end you can use this:

2 Likes

Yes will do!Thank you :slight_smile: