Skip to content

whonion/go-client-faucet-request

Repository files navigation

Go Reference Go version go-report Lint Test Build Makefile FOSSA Status

Faucet-client for send multi-request to server using proxy

Implementation with go-routines and without

Package description:

  • main.go - main package to run or build (sequential proxy request sending)
  • go-routine.go - multi-send requests with go-routine(in testing stage)
  • proxy.go - package for getting a proxy list from a remote site(in testing stage)

Description of required files:

  • proxy.txt - proxy list file in the protocol://ip:port@login@pass format
  • createwallets.sh - batch generator of wallets with output of 'addresses.txt' file
  • removewallets.sh - batch remover of wallets
  • addresses.txt - wallet's list for sending curl requests to target faucet's url
  • agents.txt - list of user-agents

How to run with shell(without build) :

ver="1.20" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version \
sudo apt-get install tmux \
tmux new -s go_faucet
git clone https://github.com/whonion/go-client-faucet-request.git \
cd go-client-faucet-request \
#make the file 'createwallets.sh ' executable
chmod +x createwallets.sh \
# generate wallet addresses for the Tendermint node and out them in 'addresses.txt'
./createwallets.sh \
# add your proxy to proxy.txt. The number of proxies must match the number of addresses
go run  main.go
# or run with goroutine (recomended use it)
go run  go-routine.go

License

FOSSA Status

About

Implementation multi-request with go-routines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published