Giter Site home page Giter Site logo

solidity_functions's Introduction

smart contract on the Ethereum blockchain

Functions I have Created:

InputCoursefun:
    This function handles what happens when you click the "Set Message" button in your web page.
    It takes the course code you typed in the input field, talks to your Ethereum account (assuming you're using something like MetaMask), and sends that code to your smart contract on the Ethereum blockchain.

getData:
    When you click the "Get cource Code" button, this function gets triggered.
    It talks to your smart contract and gets the current course code stored there. Then, it shows that code in the console.

How you Connect to my Smart Contract:

Initializing Web3 and Contract:
    I used a library called Web3 to connect your web app with the Ethereum blockchain. This allows your app to talk to the blockchain.
    I created a Contract using Web3. This Contract object represents your smart contract on the blockchain. You told it where your smart contract is located on the blockchain using its address ("0x9e9558adE04D6C5a3abf1B8B373302047cd1B6aE").

Interaction with the Smart Contract:
    When someone enters a course code and clicks "Set Message," your InputCoursefun function runs.
    It gets your Ethereum account (you probably use MetaMask for this), figures out how much "gas" is needed (like a transaction fee), and then sends your course code to your smart contract.
    The getData function helps you fetch the course code from your smart contract when you click the "Get cource Code" button.

solidity_functions's People

Contributors

harshdoiphode avatar

Watchers

 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.