sui-faucet-claim/README.md
2023-04-04 11:54:35 +02:00

46 lines
750 B
Markdown

# SUI Faucet Claim
*It is a bot written in golang which automatically claims your faucet every 6 hours.*
## Setup
### Requirements
- [Golang](https://go.dev/doc/install)
Copy the `.env.example` file and rename it to `.env`. Fill the variables with your own values.
```env
NETWORK={network}
WALLETS={wallet1},{wallet2},{wallet3},...
```
- NETWORK can be `devnet` or `testnet`.
- WALLETS is your wallet address. Don't forget to put `,` between the wallets.
## Run
### Run with go
```bash
go run .
```
### Build windows
```bash
GOOS=windows GOARCH=amd64 go build -o suifaucet.exe .
```
### Build linux
```bash
GOOS=linux GOARCH=amd64 go build -o suifaucet .
```
### Build mac
```bash
GOOS=darwin GOARCH=amd64 go build -o suifaucet .
```