Categorygithub.com/threefoldtech/tfgrid-sdk-go/activation-service
modulepackage
0.11.2
Repository: https://github.com/threefoldtech/tfgrid-sdk-go.git
Documentation: pkg.go.dev

# 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).

# Packages

Package app for activation backend app.
Package cmd to make it cmd app Copyright © 2023 NAME HERE <EMAIL ADDRESS> */.
Package config for config details.
Package middlewares for middleware between api and backend.