activation-service

command module
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

Substrate funding service

gopherbadger-tag-do-not-edit

A TFChain Wallet account requires a minimum balance to exist and function. New TFChain users will not automatically have any tokens (also not on stellar).

Therefore an activation service for new TFChain wallets is created. It activates new TFChain wallet addresses by depositing a minimal amount of TFT (currently 1 TFT).

Installing and running

create .env file with following content:

URL=wss://substrate01.threefold.io
MNEMONIC=substrate ed25519 private words
ACTIVATION_AMOUNT=1
KYC_PUBLIC_KEY=kyc service 25119 public key

Run

make run

Endpoints

Activate

/activation/activate

Activates a Substrate account and puts 500 tokens on it.

Example: Post to localhost:3000/activation/activate

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"substrateAccountID": "some_id"}' \
  http://localhost:3000/activation/activate

Networks

We will run an activation service for each TF Grid network (mainnet, testnet, devnet, qanet).

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
Package app for activation backend app
Package app for activation backend app
Package cmd to make it cmd app
Package cmd to make it cmd app
Package config for config details
Package config for config details
Package middlewares for middleware between api and backend
Package middlewares for middleware between api and backend

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL