How to run a contract method on an account other than the connected one. #5352
Unanswered
Instinct1V
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working on creating a web3 browser game and I ran into an issue. I have a method in my SmartContract for giving players tokens and its onlyOwner. I want to be able to let two things call this method. 1. Me... 2. The code in my frontend... I DO NOT want the code to be able to be ran from anyone else or their code since users could easily just give themselves free coins.
Is there a way that I can run the function from MY Account in the frontend (Basically give the frontend access to my account), instead of it running from the connected user? All Feedback is welcome, thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions