Code Monkey home page Code Monkey logo

statechangeui's Introduction

StateChangeUI

Interact with Smart Contract to send a transaction to change the state of a variable on Ethereum Block chain.

Pre-requisites :

  1. Install Metamask in your browser (Chrome : webstore , Mozilla: Add-ons). Code will show a message if its not installed.
  2. Signup in Metamask and add some ether in your Ropsten Test Network because all the transactions fee will be deducted from you account..

How to run the code.

Open index.html in your browser. You can see the existing value like "last inserted value into the blockchain is : Hello User"

Enter a new value in the given text box "Insert a new value" and click "Add to blockchain", it will open your metamask notification screen. Press "confirm" to move forward.

After the confirmation the transaction will be sent to the blockchain and after few seconds , the new will appear on the screen.

How to see my transaction on exchange.

Press F12, while doing the transaction. Here you can see a Transaction hash like

"0x4c37f91b3aa15c2f2a3a6f......"

Copy your transaction hash and open "https://ropsten.etherscan.io/" and enter your transaction hash in the search box.

You will see the status as "pending" or "successfull" with some additional details of your transaction like Transaction Fee, input Data.

statechangeui's People

Contributors

dn1990 avatar

Watchers

Nikhita Kale avatar Divya Nailwal 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.