Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.11 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.11 KB

KIN Distributor

This project sets up a webserver that sends KIN assets to addresses over the Stellar TestNet. It will create a KIN asset, associated with the seed in config.json file. The webserver then exposes a GET endpoint (on port 9000) that takes an address as its parameter and sends KIN assets to it.

curl 'localhost:9000/send?addr=<Stellar address to send kin too>'

Note that the receiving address will have to establish a trustline to the KIN asset issuer before it could receive any KINs.

You can create issuer seed on Stellar Laboratory.

How to Install

  • Install golang
  • Clone the repo to GOPATH/src
  • Install glide v0.13.1 for dependency management.
  • Execute the following bash code for downloading glide and dependencies.
glide install

How to Run

Run the command below

go build && ./StellarKinDistributor

Once the account is funded by testnet's friendbot, the webserver waits for incoming requests on port 9000.