How to log in to your wallet with the private key in Moralis Cloud Web3 SDK?
In classic web3.js I do like this:
const Web3 = require(“web3”);
const web3 = new Web3(new Web3.providers.WebsocketProvider(process.env.WEB3_PROVIDER_ADDRESS));
web3.eth.accounts.wallet.add(process.env.ACCOUNT_PRIVATE_KEY);
const account = web3.eth.accounts.wallet[0].address;