Skip to content

Datura-ai/alpha-token-transfer-apis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpha Token Transfer APIs

Alpha Token Transfer APIs

Install

  1. Create Virtual Env:
python3 -m venv venv
source venv/bin/activate
  1. Install requirements:
pip install -r requirement.txt
  1. Setup Environmet Variables.

Run following command to copy .env file from .env.template.

cp src/.env.template src/.env

3.1. Generate Cipher text for mnemonic:

cd src && python3 cli.py generate-cipher-text

You'll be required to put mnemonic text and password. This password will be used to run the app.

Copy output text and paste into src/.env file.

3.2. Generate JWT Secret key:

Run following command to generate JWT Secret key:

python3 cli.py generate-jwt-secret

Copy output into src/.env file.

You need to fill HOTKEY and NET_UID properly in .env file.

  1. Run application.
python3 app.py

Test API

You can test transfer using CLI:

python3 cli.py transfer-balance --coldkeys=5CqvqYU8DSCQRd8j8GxGpWrYFWihraXvxjXjsAaU2AF9hs59,5HQtHtkorV8yrPzvUgPomHvcZuFoscvD1Js7vTaJanB4ZKme --amount_in_usd=10

About

Alpha Token Transfer APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages