All Projects → 44uk → symbol-faucet

44uk / symbol-faucet

Licence: MIT License
Faucet application for symbol

Programming Languages

typescript
32286 projects
Vue
7211 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to symbol-faucet

symbol-dojo
nem2(catapult) Learning Hands-on Project (道場)
Stars: ✭ 12 (+0%)
Mutual labels:  nem, nem-blockchain, catapult
nis-python-client
Python client for NEM NIS API (https://nemproject.github.io). XEM\NEM\Crypto
Stars: ✭ 16 (+33.33%)
Mutual labels:  nem, nem-blockchain
pacNEM
pacNEM is a Browser PacMan game with NodeJS, Socket.io, Handlebars and NEM Blockchain
Stars: ✭ 20 (+66.67%)
Mutual labels:  nem, nem-blockchain
sdk-java
Symbol SDK for Java
Stars: ✭ 38 (+216.67%)
Mutual labels:  nem
Accident-avoidance-deepsortyoloFCRN
An accident avoidance program that raises alert when nearby vehicles are moving at a relative speed faster than a threshold value, additionally it logs some data onto NEM-Mijin blockchain network
Stars: ✭ 18 (+50%)
Mutual labels:  nem-blockchain
nem-toolchain
Command line toolchain for NEM blockchain
Stars: ✭ 25 (+108.33%)
Mutual labels:  nem
NEMPay
Adaptable Android & iOS Mosaic Wallet for NEM Blockchain
Stars: ✭ 36 (+200%)
Mutual labels:  nem

🚰 NEM2 (catapult) Faucet

💓 Demo

🤝 Using with catapult-service-bootstrap

Build or Pull image

# build image
$ docker build -t my-symbol-faucet .

# or pull from dockerhub
$ docker pull 44uk/symbol-faucet:gorilla

Add as service

(Quickest way) Using nemesis Private Key example

faucet:
  # image: my-symbol-faucet # in case of built image
  image: 44uk/symbol-faucet:gorilla
  stop_signal: SIGINT
  command: sh -c "/bin/sleep 15 && /bin/sh /app/bin/create-env.sh && /usr/local/bin/npm start"
  environment:
    - NEM_API_URL=http://rest-gateway:3000
    - NEM_PUBLIC_URL=http://localhost:3000
  volumes:
    # for reading private key from addresses.yaml
    - ../../build/generated-addresses:/addresses:ro
    # for reading generation hash from block file
    - ../../data/api-node-0/00000:/data/00000:ro
  ports:
    - '4000:4000'
  depends_on:
    - rest-gateway
    - api-node-0

Using specific PrivateKey and GenerationHash

faucet:
  image: 44uk/symbol-faucet:gorilla
  stop_signal: SIGINT
  environment:
    - NEM_API_URL=http://rest-gateway:3000
    - NEM_PUBLIC_URL=http://localhost:3000
    - NEM_PRIVATE_KEY=__YOUR_PRIVATE_KEY__
  ports:
    - '4000:4000'
  depends_on:
    - rest-gateway

Specific Mosaic faucet example

faucet:
  image: 44uk/symbol-faucet:gorilla
  stop_signal: SIGINT
  environment:
    - NEM_API_URL=http://rest-gateway:3000
    - NEM_PUBLIC_URL=http://localhost:3000
    - NEM_MOSAIC_FQN=symbol.xym
  ports:
    - '4000:4000'
  depends_on:
    - rest-gateway

Deploy to Heroku

Deploy

Need to set NEM_PRIVATE_KEY(PrivateKey of your faucet account) while deployment.

If you want to use ReCaptcha, set both variables RECAPTCHA_CLIENT_SECRET and RECAPTCHA_SERVER_SECRET.

🐳 Dockerimage

🐚 Claimimg without Browser

curl http://localhost:4000/claims -d 'recipient=__YOUR_ADDRESS__'

🔥 Customize

# set enviroment variables
# * PORT (default: 4000)
# * NEM_PRIVATE_KEY (required)
# * NEM_API_URL
# * NEM_PUBLIC_URL
# * NEM_NETWORK
# * NEM_GENERATION_HASH
# * NEM_MOSAIC_FQN (default: symbol.xym)
# * NEM_MOSAIC_HEX (for not linked mosaic)
# * NEM_OUT_MIN
# * NEM_OUT_MAX
# * NEM_OUT_OPT
# * NEM_FEE_MULTIPLIER
# * NEM_MAX_FEE
# * NEM_MAX_DEADLINE
# * NEM_MAX_BALANCE
# * NEM_MAX_UNCONFIRMED
# * NEM_WAIT_BLOCK
# * RECAPTCHA_CLIENT_SECRET
# * RECAPTCHA_SERVER_SECRET
# see .env.sample

# install packages
$ npm install

# start app
$ npm start

# or for development
$ npm run dev

💪 Powered by

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].