https://github.com/janrockdev/sui-sandbox
Rust example for SUI - what you can find in their documentation!
https://github.com/janrockdev/sui-sandbox
blockchain rust rust-lang sui
Last synced: 7 months ago
JSON representation
Rust example for SUI - what you can find in their documentation!
- Host: GitHub
- URL: https://github.com/janrockdev/sui-sandbox
- Owner: janrockdev
- Created: 2024-03-24T00:07:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-24T00:12:09.000Z (over 1 year ago)
- Last Synced: 2025-01-24T19:34:47.984Z (8 months ago)
- Topics: blockchain, rust, rust-lang, sui
- Language: Rust
- Homepage:
- Size: 48.8 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SUI Sandpit
## Introduction
The repo contains a few examples of SUI applications written using the **Rust SDK**. The examples come with `README.md` files explaining step-by-step key SUI and blockchain contexts, references to more documentation, as well as instructions for configuring the environments and running them.
## Examples
- [01](/src/01_transaction/): How to send SUI coin from one wallet to another.
## Installation
You will need a working Rust installation with Cargo.
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```### Local SUI in Docker/WSL
```
apt update
apt upgrade -y
apt-get install -y curl git-all cmake gcc libssl-dev pkg-config libclang-dev libpq-dev build-essential wget net-toolscurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install gccbrew install sui
sui start
```