Shuttle One API (2020-03-03) (Test net)
2020-03-03 V1 Release
The base URL is: http://shuttleone.network:9007/api
Refer to the following for description of each endpoint
Get server timestamp.
write api (for test encrypt)
1529999999
example api/szo/create
Create new wallet account
write api NO ENCRYPT
return wallet address if success. if error return 0
example api/szo/kyc_put/0xe2453621ae8ff76c3f952206fac6399b5efab6eb/John/Gate/USA/AB1243234
KYC this wallet address. if wallet address not create by this system it can’t KYC (in production version can do it)
write api
Success
{
"code" : 0,
"data" : (txhash)
}
Error
{
"code" : 1,
"data" : Error string
}
example api/szo/kyc_get/0xe2453621ae8ff76c3f952206fac6399b5efab6eb/John/Gate/USA/AB1243234
Read KYC Data From blockchain
read api
Success
{
"code" : 0,
"data" :
{
"kyc" :
{
"country" : "USA",
"idcard" : "US334212312234",
"name" : "Steve",
"surname" : "Job"
}
}
}
Error
{
"code" : 1,
"data" : Error string
}
example api/szo/wallet/topup/0x8C44d3475e4784fc1D30746473F5cBd8Db227179/12.32/PHP
Topup money then Agent will give DAI to use
Amount = Amount in that currency
Currency Support SGD,USD,THB,MYR,IDR,PHP
Maximum per time are 500 USD Minimum 10 USD
write api
Success
{
"code" : 0,
"data" : (txhash)
}
Error
{
"code" : 1,
"data" : Error string
}
example api/szo/wallet/balance/0x8C44d3475e4784fc1D30746473F5cBd8Db227179/PHP
Get balance
read api
123.3342
example api/szo/send/0x…../0x…../342.334/PHP
Send Money to other fee 3% minimum send 5 USD
write api
Success
{
"code" : 0,
"data" : (txhash)
“receive” : xxxx
“fee” : xxxx
}
Error
{
"code" : 1,
"data" : Error string
}
example api/szo/withdraw/0x…./342.334/USD
Withdraw to fiat money and transfer balance back to agent
Success
{
"code" : 0,
"data" : (txhash)
“recieve” : xxxx
“fee” : xxxx
}
Error
{
"code" : 1,
"data" : Error string
}