I read this -> https://docs.moralis.io/moralis-server/sending-assets but could we use Moralis to interact (transfer tokens, execute functions) with smart contract on Ethereum without interacting with Metamask?
you can only call read only functions without interacting with MetaMask (or another wallet) with runContractFunction: https://docs.moralis.io/moralis-server/web3-sdk/native#runcontractfunction
Ok, thatβs too bad as I need to execute some functions in smart contract. I actually need that as Iβm participating in a hackathon sponsored by Moralis.
without metamask (or another wallet), youβll have to use a private key in order to execute write functions in a smart contract
Hi, I am also looking for the same functionality. I need a console program to interact and write to my smart contract without having need to using an interface and connecting with metamask using the interface. Do you know how I can use my wallet address and private key to automate the process.
you could start with a code like this: How to solve Returned error: only replay-protected (EIP-155) transactions allowed over RPC?