https://github.com/mickey9315/solana-helloworld
https://github.com/mickey9315/solana-helloworld
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mickey9315/solana-helloworld
- Owner: Mickey9315
- License: mit
- Created: 2024-11-19T06:41:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-01-07T12:20:22.000Z (6 months ago)
- Last Synced: 2025-01-07T13:26:59.249Z (6 months ago)
- Language: TypeScript
- Size: 858 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-gitpod.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build status][travis-image]][travis-url] [](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)