How to call a contract’s write function using Moralis

I am creating a dapp where I have to call a custom write function.
Read function are getting called smoothly in the dapp.
But facing issues with write function.

I need guidance in that in possible please share articles links, videos links anything.

Thank you

Hi @Owai2627

Moralis API does not have functions related to calling smart contract write functions. You can use other packages like wagmi to call smart contract write functions.

Wagmi docs: https://wagmi.sh/react/hooks/useContractWrite

Any link for webJs provider

I did not understand what you mean by that.:thinking:

I am using web3Js for read functions, can you tell me how to call write functions in it.

I dont have an example right now. Have a look at the solution in the below post.