Front end and write to smart contract

Is there a documentation, working tutorial that shows how to
1 - Set up a front end (for login, auth) and maybe an input field
and then subsequently
2 - Write to a smart contract (without self-hosting if possible)?

I got confused while searching for answers to this subject.
I guess the “donation” example requires self-hosting(?)
Any pointers (especially working tutorials) will be appreciated.
TIA

You can use directly web3 or ethers in front end to make a smart contract call, you don’t need anything else.

If you want to do an authentication you will need a server for now or a backend.

Any example / walkthrough?
I would think this is a fairly “common” scenario.
In my case I am just trying to add a frontend to a blind auction smart contract.
Maybe a login page with an input (bets) and authenticate.
Then later from another page submit the “reveal” data to the smart contract,
Thank you

What did you try by now? I don’t understand what you mean with authentication? you mean connecting a wallet or something else?

Thank you for your prompt reply.

So far I have the “nextjs_moralis_auth” up and running.
I wanted to add new page(s) to invoke “call” and “write” functions in a smart contract without installing the Moralis server.

I read that “Moralis v2 sdk does not require the old Moralis server”. "
So most importantly I am looking for guidance, example, tutorial about invoking “write” to a smart contract.

You can use wagmi hooks in your next js app

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.