Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 884 Bytes

README.md

File metadata and controls

47 lines (34 loc) · 884 Bytes

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