I'm making a Dapp for users who don't have a wallet installed and have no ETH address. I would like users to use my account for all transactions.

I'd like to sign my transactions with the contract owner address using his private key.

But I can't find a way to doing that. Please gimme some help

I'm using web3@1.0 (web3.js) For the moment, my contract is deployed throw the Ropsten Testnet

  • Your title and description seems to be conflicting. Do you want to develop a DApp without a wallet like MetaMask installed in browser. Is that correct? – Chim Jan 15 '18 at 12:13
  • Hum, I have an ETH account because I'm the contract creator, but the future users won't have ones. – nicolas.grd Jan 15 '18 at 12:18
  • You need an ETH account to interact with Ethereum, so I'm not sure how your future users would use your DApp – Chim Jan 15 '18 at 12:21
  • Ok, like they don't have accounts, my aim is to make transactions with my account and so to pay fees for them, do you understand? It's for a little company, not a public market – nicolas.grd Jan 15 '18 at 12:48

You have to use sendRawTransaction method for all messages. That require you to sign every message with senders private key (in your case contract owners) and does not depend on any installed wallets. You could use web3js-raw to make this process easy and sample using this can be found here.

  • I try and feedback ty :) – nicolas.grd Jan 15 '18 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.