Giter Club home page Giter Club logo

opinionbroadcast's Introduction

[Tutorial]OpinionBroadcast

This start contract allows anyone to broadcast their opinion to the blockchain where it’ll be viewable for the rest of eternity. But there is a one time 0.05 Ether fee you need to pay in order to do so!

NOTE: This is a tutorial to get you a feel for deploying smart contracts and interacting with them on Ropsten TestNet. The process will be quite similar for deploying and interacting with contracts on MainNet.

Requirements

  • (Use of virtualenv is highly suggested!) pip install requirements.txt
  • MetaMask extension
  • Remix - Solidity IDE
  • Get API key by creating free account on Infura. This will enable us to work with Ropsten TestNet without hosting our own node. Infura will do the heavy lifting for us!

These are all the tools you need to delpoy the smart contracts and interact with it!

Deployment

  • Create ethereum account using MetaMask. Make sure to choose "Ropsten Test Network"
  • Request few ethers from the test faucet
  • Go to Remix solidity IDE and copy-paste the contents of opinion.sol file in the IDE.
  • Click on "Start to compile" from the Compile tab in the top right corner.
  • After compiling it, go to Run tab and click on "deploy". Metamask should bring up a popup asking you to confirm the transaction. If not, just open the Metamask extension and do it there.
  • A message at the bottom of the Remix console will notify you when the contract is deployed. You can click on the link to explore the transaction on ropsten.etherscan.io. Note the contracts address!

Interact with the contract via Web3.py

  • Replace lines 6-10 of opinion.py accordingly. You can get your account's private key from the "menu" in the MetaMask extension.

opinionbroadcast's People

Contributors

vutsalsinghal avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.