Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
Web3js calling authorized contract function

For my task, I have to call my contract's methods which use onlyOwner modificators, and basically has some authorizing logic. How do I call contract methods with some specific account? For example, if I have basic ERC20 token contract:

contract MyToken is ERC20 {
    function mint() external payable onlyOwner {
         _mint(msg.sender, msg.value);
    }
}

and want to call it from web3 on server side, how do I connect account to web3 client so I could call it like that:

myToken.methods.mint().send({from: 'myAccountAddress'});

How do I make web3 know that I have access to this wallet address?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!