Giter Site home page Giter Site logo

viral-sangani / solana-hello-world Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blockpulsar/solana-hello-world

0.0 0.0 0.0 53 KB

Solana Hello World Program example with Blockpulsar Deployment instructions

License: MIT License

JavaScript 72.74% Rust 27.26%

solana-hello-world's Introduction

Minimal Hello World Example on Solana Blockchain

This example is heavily influenced by the official example-helloworld, but a lot more minimal, in order to be understood as fast as possible.

Solana Program (Smart Contract)

The solana program increments the number of greetings on the account.

1. Build

It is a standard Cargo Rust project. You can check by building the Rust project locally.

$ cargo build-bpf

2. Deploy

Deploy the program with Blockpulsar CI Pipeline as it is described in the official documentation: docs.blockpulsar.com

Javascript Client

The Javascript code in the repo interacts with the Blockpulsar Solana Cluster. You need your Solana Account's key pairs dowloaded from the website: app.blockpulsar.com/apps

Run Javascript Client

Before runnint the client make sure you have .env file copied from the .env.sample file which contains API_KEY, API_SECRET and other options required to run the JavaScript Client.

$ cd client
$ npm i
$ cd ..
$ node /client/src/index.js

solana-hello-world's People

Contributors

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