/TransactionAPI

A simple API for money transaction using Blockchain

Primary LanguageTypeScript

Simple API for money transaction

API List

1. Add new users

POST: /register
{
    "userName": "stranger"
}

2. Get all users information

GET: /allUsers

3. Withdraw money

POST: /withdraw
{
    "username": "vnmc",
    "amount": 500000
}

4. Transfer money to another

POST: /transfer
{
    "from" : "vnmc",
    "to": "pnt",
    "amount": 500000
}

5. Recharge money

POST: /recharge-money
{
    "username": "vnmc",
    "amount": 20000000
}