Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solana-labs/example-helloworld
Hello world on Solana
https://github.com/solana-labs/example-helloworld
Last synced: 6 days ago
JSON representation
Hello world on Solana
- Host: GitHub
- URL: https://github.com/solana-labs/example-helloworld
- Owner: solana-labs
- License: mit
- Created: 2020-04-07T07:48:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T18:11:07.000Z (9 months ago)
- Last Synced: 2024-11-29T17:05:36.211Z (13 days ago)
- Language: TypeScript
- Size: 1.27 MB
- Stars: 906
- Watchers: 35
- Forks: 869
- Open Issues: 52
-
Metadata Files:
- Readme: README-gitpod.md
- License: LICENSE
Awesome Lists containing this project
- awesome-solana - Hello World
- awesome-ccamel - solana-labs/example-helloworld - Hello world on Solana (TypeScript)
- best-of-crypto - GitHub - 21% open · ⏱️ 20.07.2023): (Smart Contract Platforms)
- awesome-solana-ecosystem - Hello World
README
[![Build status][travis-image]][travis-url] [![Gitpod
Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/solana-labs/example-helloworld)[travis-image]:
https://travis-ci.org/solana-labs/example-helloworld.svg?branch=master
[travis-url]: https://travis-ci.org/solana-labs/example-helloworld# Hello world on Solana (Gitpod version)
This project demonstrates how to use the [Solana Javascript
API](https://github.com/solana-labs/solana-web3.js) to build, deploy, and
interact with programs on the Solana blockchain.The project comprises of:
* An on-chain hello world program
* A client that can send a "hello" to an account and get back the number of
times "hello" has been sent## Table of Contents
- [Hello world on Solana (Gitpod
version)](#hello-world-on-solana-gitpod-version)
- [Table of Contents](#table-of-contents)
- [Quick Start](#quick-start)
- [Expected output](#expected-output)
- [Customizing the Program](#customizing-the-program)
- [Learn about Solana](#learn-about-solana)
- [Learn about the client](#learn-about-the-client)
- [Learn about the on-chain program](#learn-about-the-on-chain-program)
- [Expand your skills with advanced
examples](#expand-your-skills-with-advanced-examples)## Quick Start
Using this example in Gitpod connects to the public Solana `devnet` cluster. Use
the environment variable `CLUSTER` to choose a different Solana cluster.Start a local Solana cluster:
```bash
solana-test-validator
```Deploy the on-chain program:
```bash
solana program deploy ./dist/program/helloworld.so
```Run the client to load and interact with the on-chain program:
```bash
npm run start
```The remaining sections of this document point back to the non-Gitpod version of
the README for more information.### [Expected output](README.md#expected-output)
### [Customizing the Program](README.md#Customizing-the-Program)
## [Learn about Solana](README.md#learn-about-solana)
## [Learn about the client](README.md#learn-about-the-client)
## [Learn about the on-chain program](README.md#learn-about-the-on-chain-program)
## [Expand your skills with advanced examples](README.md#expand-your-skills-with-advanced-examples)