To start accepting payments on your site, you first need to register, create an application in your account, receive a api key, secret key and a token in the application settings.
POST /v2/token
This method requires the following URL headers parameters:
Field | Value | Description |
---|---|---|
api-key |
string | Get a api key here |
secret |
string | Accounts in the EGATE.GLOBAL are identified by a api key and a secret key |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Field | Value | Description |
---|---|---|
code |
integer | The value success indicates that this is a successful response |
access-token |
string | The access token |
Request:
api-key:key-1234557969557293d0235
secret:6LeMbT0UAAAAAB5Ze-hjSFMOn0RbM9BE09MjmNns
Response:
{
"code": 200,
"access-token": "c3c7e2441bf2dd28d0fd29089227111c",
"expire": {
"$date": {
"$numberLong": "1524698519"
}
}
}
GET /v2/create/{:currency}
This method requires the following URL parameters:
Field | Value | Description |
---|---|---|
access-token |
string header | The value in headers |
currency |
string | The value : btc/eth/bch/ltc/egt/xrp/usdt/vme |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Field | Value | Description |
---|---|---|
code |
integer | The value success indicates that this is a successful response |
currency |
string | The symbol crypto currency: btc/eth/bch/ltc/egt/xrp/usdt/vme |
address |
string | New address created |
Request:
/v2/create/btc
Response:
{
"code": 200,
"crypto": "btc",
"address": "mtVr8NhiRRXdLwGfYS9y83sR7zXCuGPM9N"
}
GET /v2/balance/{:currency}/{:address}
This method requires the following URL parameters:
Field | Value | Description |
---|---|---|
access-token |
string header | The value in headers |
currency |
string | The value : btc/eth/bch/ltc/egt/xrp/usdt/vme |
address |
string | Address for crypto currency |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Field | Value | Description |
---|---|---|
code |
integer | The value success indicates that this is a successful response |
currency |
string | The symbol crypto currency: btc/eth/bch/ltc/egt/xrp/usdt/vme |
balance |
float | Your balance |
Request:
/v2/balance/btc/3PNypP6Qp4BgWaXj7T46njDHur4dTrmjBf
Response:
{
"code": 200,
"currency": "btc",
"balance": 5
}
POST /v2/send
This method requires the following Body parameters:
Field | Value | Description |
---|---|---|
access-token |
string header | The value in headers |
currency |
string | The value : btc/eth/bch/ltc/egt/xrp/usdt/vme |
from |
string | From address |
to |
string | To address |
amount |
float | Amount < Balance - fee |
note |
string | Note |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Field | Value | Description |
---|---|---|
code |
integer | The value success indicates that this is a successful response |
is_success |
boolean | true/false |
trans_id |
string | This is hash/txid blockchain |
Request:
currency:egt
from:0xE9e686520A95cfdf794A8ae5f4Ca1456d90601e4
to:0x7D9E486Ac25Caa8f0EdE1DF136C485898b131E11
amount:2.2
note:content
Response:
{
"code": 200,
"is_success": true,
"trans_id": "0xea057e229ae993562472e0136927e0baab0d3c75963889cec8260555275f0172"
}
GET /v2/is_address/{:currency}/{:address}
This method requires the following URL parameters:
Field | Value | Description |
---|---|---|
currency |
string | The value : btc/eth/bch/ltc/egt/xrp/usdt/vme |
address |
string | Your address |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Field | Value | Description |
---|---|---|
code |
integer | The value success indicates that this is a successful response |
isAddress |
boolean | true/false |
Request:
/v2/is_address/eth/0xf4b53c6C3e95CF33769A1135506496762505D216
Response:
{
"code": 200,
"isAddress": true
}
GET /v2/get_transactions_history/{:address}/{:limit}
This method requires the following URL parameters:
Field | Value | Description |
---|---|---|
access-token |
string header | The value in headers |
address |
string | Your address |
limit |
integer | The number record resurt |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Field | Value | Description |
---|---|---|
code |
integer | The value success indicates that this is a successful response |
list |
json | List json transaction |
Request:
v2/get_transactions_history/0xE9e686520A95cfdf794A8ae5f4Ca1456d90601e4/2
Response:
{
"code": 200,
"list": [
{
"symbol": "egt",
"from": "0xE9e686520A95cfdf794A8ae5f4Ca1456d90601e4",
"to": "0x7D9E486Ac25Caa8f0EdE1DF136C485898b131E11",
"trans_id": "0x780cddddf30ac28de77aae1e128765811a3a9f22158e1731c608219169908887",
"amount": 22,
"status": "pending",
"type": 2,
"fee": 0.022000000000000002,
"created_at": 1524450891
},
{
"symbol": "egt",
"from": "0xE9e686520A95cfdf794A8ae5f4Ca1456d90601e4",
"to": "0x7D9E486Ac25Caa8f0EdE1DF136C485898b131E11",
"trans_id": "0xbcc24ebad785ae5856a08f317f164eab81254bcd325aca54004f4a0affd2fe58",
"amount": 22,
"status": "pending",
"type": 2,
"fee": 0.022000000000000002,
"created_at": 1524451259
}
]
}
GET /v2/get_transaction_detail/{:hash}
This method requires the following URL parameters:
Field | Value | Description |
---|---|---|
access-token |
string header | The value in headers |
hash |
string | Your transaction ID |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Field | Value | Description |
---|---|---|
code |
integer | The value success indicates that this is a successful response |
symbol |
string | The value : btc/eth/bch/ltc/egt/xrp/usdt/vme |
from |
string | From address |
to |
string | To address |
trans_id |
string | Transaction ID is txid, hash |
amount |
float | Amount in transaction |
status |
string | success | pending | failed | wait-confirm-refund |
type |
int | 2: deposit | 3: refund | 4: withdraw |
fee |
float | Fee is % amount |
Request:
v2/get_transaction_detail/0xbae9885162a90399d798fdb4ca85b931c6fb6c07acadc14ddb3f88d87e60a034
Response:
{
"code": 200,
"symbol": "egt",
"from": "0xE9e686520A95cfdf794A8ae5f4Ca1456d90601e4",
"to": "0x7D9E486Ac25Caa8f0EdE1DF136C485898b131E11",
"trans_id": "0xbae9885162a90399d798fdb4ca85b931c6fb6c07acadc14ddb3f88d87e60a034",
"amount": 22,
"status": "pending",
"type": 2,
"fee": 0.022000000000000002,
"created_at": 1524479848
}
GET /v2/get_prices
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Request:
v2/get_prices
Response:
{
"code": 200,
"btc": 7555.01517815,
"eth": 419.587344606,
"ltc": 77.7441213806,
"bch": 757.965020154,
"xrp": 0.4300234005,
"egt": 1,
"usdt": 0.998759779,
"vme": 0.0181164515
}
GET /v2/merchant_info
This method requires the following URL parameters:
Field | Value | Description |
---|---|---|
access-token |
string header | The value in headers |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Request:
v2/merchant_info
Response:
{
"code": 200,
"email": "[email protected]",
"status": "active"
}
POST /v2/buy_card
This method requires the following Body parameters:
Field | Value | Description |
---|---|---|
access-token |
string header | The value in headers |
currency |
string | The value : egt/usdt |
amount |
float | Min amount 1 |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Field | Value | Description |
---|---|---|
code |
integer | The value success indicates that this is a successful response |
address |
string | New address created |
serial |
string | Serial for address card |
amount |
float | Amount of card address |
state |
string | sold |
msg |
string | Buy card success |
Request:
amount:20
currency:usdt
Response:
{
"code": 200,
"address": "1mR4nbrn2Y1XazSew24hW21pNm4mTyjqe",
"serial": "01324cf7c779",
"currency": "usdt",
"amount": 20,
"state": "sold",
"created_at": "1528170698",
"msg": "System is maintaining! Please comeback later"
}
POST /v2/add_card
This method requires the following Body parameters:
Field | Value | Description |
---|---|---|
access-token |
string header | The value in headers |
address |
string | Your address card |
serial |
float | Your serial card |
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:
Field | Value | Description |
---|---|---|
code |
integer | The value success indicates that this is a successful response |
msg |
string | Add success |
request:
address:0x45F9b24d0892D31bde2Ba88dDA6Ead5A2aC21373
serial:b543c94d80f3
Response:
{
"code": 200,
"address": "0x45F9b24d0892D31bde2Ba88dDA6Ead5A2aC21373",
"serial": "b543c94d80f3",
"amount": 20
"msg": "Add success"
}
POST {YOUR LINK}?callback=balance
Field | Value | Description |
---|---|---|
code |
string | Balance |
currency |
string | The value : btc/eth/bch/ltc/egt/xrp/usdt/vme |
address |
string | Address for crypto currency |
balance |
float | Your balance update |
amount |
float | Your amount = old balance - new balance |
POST {YOUR LINK}?callback=transactions
Field | Value | Description |
---|---|---|
code |
string | transactions |
trx |
string | Transaction ID |
currency |
string | The value : btc/eth/bch/ltc/egt/xrp/usdt/vme |
status |
string | status transaction |
from |
string | This is address from |
to |
string | This is address to |
amount |
string | This is amount |
fee |
string | fee of transaction |