hey guys,
i have installed and am using NextJS and react-moralis for my app. Everything is working fine so far. now i want to connect to the smart contract but nowhere is the code to do this with NextJS.
I dont know where to start, which function should i use?
i came across this, but still have no clue how to use itā¦
i have the contract abi in a variable and the contract address tooā¦ please somebody give me an example of how i can connect to a smart contract and use the say āmintā function to mint 1 numberOfTokens
i have moralis wrapping the nextjs and everything else is working fine.