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,070 points
157 views

1 answer to this question.

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
• 17,010 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
51 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
• 67,290 points
66 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
• 17,010 points
26 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
126 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
• 17,010 points

edited Aug 10, 2018 by Omkar 437 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
• 67,290 points
66 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
• 17,010 points
120 views
+1 vote
1 answer