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,090 points
3,305 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,100 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,400 points
913 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, 2019 in Blockchain by Omkar
• 69,220 points
1,494 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,100 points
715 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
1,937 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,100 points

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

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,462 views
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
• 69,220 points
1,476 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 30, 2018 in Blockchain by Perry
• 17,100 points
2,571 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP