An open API service indexing awesome lists of open source software.

https://github.com/janrockdev/solana-sandpit


https://github.com/janrockdev/solana-sandpit

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Solana-Rust-Sandpit

Solana

Version: 0.1.0

Release: 19/07/2024

[![Rust](https://github.com/janrockdev/solana-sandpit/actions/workflows/rust.yml/badge.svg)](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/