https://github.com/xandkar/solana-hello-world
An actually-minimal Solana program and client in Rust.
https://github.com/xandkar/solana-hello-world
Last synced: about 1 month ago
JSON representation
An actually-minimal Solana program and client in Rust.
- Host: GitHub
- URL: https://github.com/xandkar/solana-hello-world
- Owner: xandkar
- License: bsd-3-clause
- Created: 2022-08-12T18:12:28.000Z (about 3 years ago)
- Default Branch: dominus
- Last Pushed: 2022-08-19T17:33:50.000Z (about 3 years ago)
- Last Synced: 2024-10-19T03:06:39.735Z (12 months ago)
- Language: Rust
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
solana hello world
==================An actually-minimal Solana program and client in Rust.
I'm learning Solana and all the examples, including the official hello-world,
are too complex to get the essential idea across.I wanted a bare bones working example, entirely in Rust (not a JS/TS client),
but couldn't find one, so made this.build
-----./client-build.sh
./program-build.shrun
---1. Open 3 terminals: A, B and C
2. In terminal A, start the test validator:solana-test-validator
3. In terminal B, ensure you have ample sol to spare:
solana airdrop 10 --url http://127.0.0.1:8899
4. In terminal B, watch the test validator logs:
solana logs --url http://127.0.0.1:8899
4. In terminal C, deploy the program:
./program-deploy.sh
5. In terminal C:
./client-run.sh
6. Behold the output in terminals B and C!