How to deploy ethereum smart contracts on a website?

+1 vote

Can anyone tell me if I can deploy my own smart contract or run/host a solidity code via my own website?

I am trying to deploy a contract on a local ethereum blockchain using testrpc.  

I want to create a contract that sends a token to a dynamic number of eth addresses. So, instead of firing the contract for each token which would be time-consuming, I would like to do it automatically/seamlessly. But I want to be able to run my solidity code and handle the contract through my own website instead of running it on the ethereum wallet application or somewhere else.

Anyone, please share some ideas on how we can achieve this?

Mar 26, 2018 in Blockchain by Shashank
• 10,350 points
112 views

1 answer to this question.

+1 vote
Best answer

There are many ways to do this:

1 - The easiest way to do this is to run testrpc on a server,

2 - If you want a real private Ethereum Blockchain, you can build a private node on a aws/azure/google server and expose this node to internet.

3 - You can use an ethereum public network to send your smart contract to the public ethereum testnet and then use Metamask and web3js to connect your website to the ethereum testnet.

answered Mar 26, 2018 by Johnathon
• 9,090 points

selected Aug 3, 2018 by Omkar

Related Questions In Blockchain

0 votes
1 answer

How to get notified when an event triggers on ethereum smart contract?

Here's a simple example for web3js 1.0.0.beta*: function handler ...READ MORE

answered Jun 8, 2018 in Blockchain by ariaholic
• 7,340 points
479 views
0 votes
1 answer
+1 vote
3 answers

Is it possible to store data about arbitrary objects on the blockchain using smart contracts?

Consider following tutorial from Hyperledger Fabric "Getting Started" pages. Basically ...READ MORE

answered Aug 30, 2018 in Blockchain by Artem
162 views
0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,810 points

edited Mar 26, 2018 by Christine 145 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,810 points
188 views
0 votes
1 answer
+3 votes
2 answers

How to run ethereumjs using Node.JS

You need to install testrpc globally on ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,620 points
182 views
+1 vote
1 answer

How does a miner get to know that a transaction is verified by all the nodes?

Contrary to the popular belief, it is ...READ MORE

answered Mar 26, 2018 in Blockchain by Johnathon
• 9,090 points
104 views