Create Wallets


Api Url:

/api/create_wallet

Request Method:

POST

Query Parameter:

N/A

Body:

Sample input data:

{
    "currency":"BTC"
}

Description:

currency:

You need to pass symbol of any currency such as BTC,BCH,ETH,LTC

Sample Output:

{
    "status_code": 200,
    "time": "Fri Oct 12 2018 17:00:19 GMT+0600 (Universal Standard Time)",
        "result": {
            "public": "1EACExky8iZgNWmNGu1HWMJ4YtB4CSoCEP",
            "private": "a22f7e1a8c2a2926b6877ef5cbf3c496547ecef8cbbb777f9fc98c430fc4f6b3"
        }
}

Get Balance


Api Url:

/api/currency/address/balance

Sample url:

/api/BTC/16MGLudHLqZzJzyVbCggqRdRbAJVUukVLJ/balance

Description:

currency:

You need to pass symbol here of any currency such as BTC,BCH,ETH,LTC

address:

You need to pass address of previous currency here

Request Method:

GET

Query Parameter:

N/A

Body:

N/A

Sample Output:

{
  "status_code": 200,
  "time": "Fri Oct 12 2018 17:03:09 GMT+0600 (Universal Standard Time)",
  "result": {
    "balance": 0,
    "unconfirmedBalance": 0,
    "total": 0
  }
}

Make Transaction


Api Url:

/api/send_transaction/currency

Sample url:

/api/send_transaction/BTC

Description:

currency:

You need to pass symbol here of any currency such as BTC,BCH,ETH,LTC

Request Method:

POST

Query Parameter:

N/A

Body:

Sample input data:

{
    "fromAddress":"1EACExky8iZgNWmNGu1HWMJ4YtB4CSoCEP",
    "pkey":"a22f7e1a8c2a2926b6877ef5cbf3c496547ecef8cbbb777f9fc98c430fc4f6b3",
    "toAddress":"15kzPLY35v4pvaVHiiSAPzfm6kyg5gvv9n",
    "amount":0.1,
    "withFee":0
}

Description:

fromAddress:

address/public-key of sender

pkey:

private of the sender address

toAddress:

Receiver address

amount:

Sending amount is a decimal value with 8 digit maximum after a point.

withFee:

Is that amount with fee or not. If the value is 0 then fee will be deducted from the sender balance or if the value is 1 then fee will be deducted from sending amount

NB:

  • Do not use smallest unit of crypto-currency like satoshi,wei,gei etc as amount
  • You should have higher or equal balance then sum of amount and TX fee.

Sample Output:

{
    "status_code": 200,
    "time": "Mon Oct 15 2018 10:07:18 GMT+0600 (Universal Standard Time)",
    "result": {
        "error": 0,
        "message": "Successfully transferred",
        "txId": "c4157c95f22ae775f3ab3a9f97fb1ee32a7507b63e512561f27495469ebb76e7"
    }
}

Send BTC


Api Url:

/api/send_btc

Sample url:

/api/send_btc/

Description:

N/A
Request Method:

POST

Query Parameter:

N/A

Body:

Sample input data:

{
    "fromAddress":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "pkey":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "toSend":"[{"address":"xxxxxxxxxxxxxxxxxxxxx","amount":x.xxxx}]"
}

Description:

fromAddress:

address/public-key of sender

pkey:

private of the sender address

toSend:

Array of object as a string

NB:

  • Do not use smallest unit of crypto-currency like satoshi,wei,gei etc as amount
  • You should have higher or equal balance then sum of amount and TX fee.

Sample Output:

{
    "status_code": 200,
    "time": "Mon Oct 15 2018 10:07:18 GMT+0600 (Universal Standard Time)",
    "result": {
        "error": 0,
        "message": "Successfully transferred",
        "txId": "c4157c95f22ae775f3ab3a9f97fb1ee32a7507b63e512561f27495469ebb76e7"
    }
}