Skip to content

Service for create accounts in eos blockchain.

Notifications You must be signed in to change notification settings

sonnyd1982/eos_faucet

 
 

Repository files navigation

eos_faucet

Service for create accounts in eos blockchain.

Build Docker image

docker-compose build

Run Docker image

  1. Create .env file
  2. upgrade database docker-compose run --rm upgrade
  3. create user for admin page docker-compose run --rm base python manage.py createsuperuser
  4. run web service docker-compose up web
  5. app lisen you requests on http://127.0.0.1:8000
  6. admin page: http://127.0.0.1:8000/admin/

Api methods

Get sms code

POST request to /api/pass-code/ number: phone number

Create account

POST request to /api/account/

account: eos_new_account_name
owner_pub: eos_owner_pub_key
active_pub: eos_active_pub_key
number: phone number
passcode: sms code

.env file example

EOS_NODE_URL=https://..
EOS_NODE_PORT=443
EOS_NODE_CHAIN_ID=

REGISTRATOR_NAME=
REGISTRATOR_WIF=

TWILLIO_SID=
TWILLIO_TOKEN=.

DEBUG=False

About

Service for create accounts in eos blockchain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.0%
  • JavaScript 6.5%
  • Dockerfile 1.5%