On this page we’ll run through the easiest way to get up and running with the SDK from scratch.

First let’s clone an example dapp we have built.

git clone https://github.com/etherspot/etherspot-prime-sdk-with-web3auth-social-logins-nextjs-example.git

Next let’s install the packages.

cd etherspot-prime-sdk-with-web3auth-social-logins-nextjs-example
npm i

Create a .env file which contains info on the chain you want to run the dapp on and a web3auth clientId.

You can use this as an example one for mumbai.

NEXT_PUBLIC_WEB3AUTH_CHAIN_ID_HEX= 0x13881
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID="BN2OPjvtbgZPir7Yf4Kn3g7RWxPsSR3wfSoNgKIcZ3dIB_OLNMETqRjIfb2oMxGGDOYrsOQhG2o_8ZiMiYH73dY"

Then let’s run the dapp.

npm run dev

And that’s it! We have a dapp up and running which let’s a user login via Google, LinkedIn, or Github.

An Etherspot smart account is created and now you’re ready to tailor it however you want to your use case.

For next steps you can look at functions or examples.