https://github.com/janrockdev/solana-sandpit
https://github.com/janrockdev/solana-sandpit
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/janrockdev/solana-sandpit
- Owner: janrockdev
- Created: 2024-07-27T08:46:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T23:06:42.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T19:34:44.224Z (over 1 year ago)
- Language: Rust
- Size: 345 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solana-Rust-Sandpit

Version: 0.1.0
Release: 19/07/2024
[](https://github.com/janrockdev/solana-sandpit/actions/workflows/rust.yml)
### Description
Sandpit to integrates all common Solana features under one gRPC service with testing client.
### Features
- [x] wallet balance request
- [x] client network argument
- [x] create new wallet
- [x] request faucet balance for wallet
- [x] send coin between wallets
- [x] basic smart contract
### Compile
```shell
cargo build
```
### Run
```shell
#server
cargo run --bin server
#client
#wallet balance request
cargo run --bin client get-balance
#create wallet
cargo run --bin client create-wallet
#airdrop wallet - example one 1SOL = 1_000_000_000
cargo run --bin client request-airdrop 1000000000
#send SOL from one wallet to another
cargo run --bin client
<<<<<<< HEAD
#submit transaction to contract
cargo run --bin client greet devnet cau
#output
Account Info: Account { lamports: 10000000, data.len: 4, owner: D36yRZ6n8AwhhStGRJQvjZL78nx5DP2qR3CtqraQuLJF, executable: false, rent_epoch: 18446744073709551615, data: 02000000 }
Account Info Size: 4
GG556J3jxeGYnAijkpG9THKDNEnR8R8gSmidkRArjjXT has been greeted 2 time(s)
Report: Ok(())
```
### Resources
#### Solana Explorer
https://explorer.solana.com/?cluster=devnet
#### Phantom Wallet
https://phantom.app/