Hi guys! How can i execute the smart contract function on server with account? For example im owner of account and have private key/mnemonic etc. How can i connect to account on server via CLI or something like this, to execute function?
Mar 16, 2021, 6:20 PM
You can run the EVM locally, send contract there and interact with it, if that's what you mean. Or in a server.
Mar 16, 2021, 6:32 PM
Thanks for the answer, it's not what i mean) I mean: web3.js is only for frontend or somehow i can use it also on backend?
Mar 16, 2021, 6:33 PM
Well it's a javascript framework, so if your backend supports javascript then you can use that.
Mar 16, 2021, 6:35 PM
And how to connect account? For frontend i'm using metamask to connect, on backend i can't find the way to do it
Mar 16, 2021, 6:36 PM
Umh. Check for example HDWalletProvider
Mar 16, 2021, 6:38 PM
Thanks! This is what i was looking for!
Mar 16, 2021, 6:39 PM