Giter Club home page Giter Club logo

hello-world-smart-contract's Introduction

hello-world-smart-contract

NEAR SPRING POP-UP HACKATHON

Challenge #2. Hello world smart contract This is a 2-step challenge for building your first smart contract and a frontend for the whole world to see. The solution can be as simple or complex as you like! Step 1. Create a Hello World smart contract with the Rust SDK. If you're not sure where to get started, have a look here: https://www.near-sdk.io/. And if you’re brand new to Rust, check out our quick-start guide: https://docs.near.org/docs/develop/contracts/rust/intro. When we call the contract, it should take a {name} parameter and return "Hello {name}!". Deploy your Hello World smart contract on the testnet. Step 2. Build and deploy a frontend for your smart contract (GitHub Pages is the most simple option). The user should enter their name, call the contract, and see "Hello {name}!". Share the link to this channel for us to review. Submission deadline: April 17th


Step 1 Sol:

  • In CLI, run near login
  • Then run, near call test1-nearspring.prats.testnet greet_user '{"user_input": YOUR_NAME}' --accountId YOUR_ACCOUNT_HERE

hello-world-smart-contract's People

Contributors

pratsatya 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.