How can I integrate ethereum wallet on my site??

0 votes
There are certain actions I want to be there on my site.
For a user doing any actions on the website I want then to pay me a token,
User should be able to transfer tokens from one account to another.
User must be able to withdraw these tokens or convert them into cryptocurrency

How can I do that??
May 29, 2018 in Blockchain by Johnathon
• 9,050 points
102 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

you can use web3 js API to integrate wallet into your website, and the users should have metamask extension in their chrome browser.

You can extract all information you need by metamask plugin using javascript API. After extracting their accounts you can send them over to your custom server and reward them by making transactions to your smart contract where you exchange tokens.

Every user can make transaction to the smart contract to exchange tokens with other users (similar to how you reward them)

They can exchange tokens for ethereum by invoking the corresponding method of your custom smart contract which estimates the value of the token according to how you value them in your smart contract and based on the token value in ethers you deduct that value from the ethers which are deposited in the smart contract address and then transfer the ethers to the user ethereum account

answered May 29, 2018 by Perry
• 16,450 points

Related Questions In Blockchain

+1 vote
1 answer

How can I initiate a transaction on ethereum private network using mobile device?

There is no android wallet to connect ...READ MORE

answered Apr 18, 2018 in Blockchain by Shashank
• 10,330 points
30 views
+1 vote
1 answer
0 votes
1 answer

How can i integrate Omnet++ with ethereum ?? or is there any other simulator which can do this??

You can use Hive Validator. Using this, you ...READ MORE

answered Apr 9 in Blockchain by Omkar
• 65,850 points
39 views
0 votes
1 answer

How can I write complex decentralized applications on Etheruem?

Well, if you want to create a ...READ MORE

answered Apr 18, 2018 in Blockchain by Perry
• 16,450 points
14 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
65 views
0 votes
1 answer

How can I deploy a HelloWorld contract on my testrpc network?

The problem lies in the command: truffle migrate Your truffle migrate command ...READ MORE

answered Apr 27, 2018 in Blockchain by Perry
• 16,450 points

edited Aug 10, 2018 by Omkar 353 views
0 votes
1 answer
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 65,850 points
29 views
0 votes
1 answer

How can I create an online wallet without any 3rd party API on my PHP server?

With any approach, you need a bitcoin ...READ MORE

answered Aug 29, 2018 in Blockchain by Perry
• 16,450 points
59 views
+1 vote
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.