0.901
This commit is contained in:
parent
d44a7a8497
commit
5782e4c1ca
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
# API v2 (for exchanges)
|
||||
Works with update version 0.897
|
||||
Works with update version 0.901
|
||||
|
||||
The API is designed to make it easier to write third-party applications. Server-side cryptography and POW operations are performed. Therefore, it is not recommended for public access, because it is not protected from DDOS attacks. Use it if applications such as the exchange server are on the same private network.
|
||||
|
||||
@ -159,6 +159,7 @@ return:
|
||||
"result": 1,
|
||||
"SumCOIN": 5589146,
|
||||
"SumCENT": 555765670,
|
||||
"Currency": 0,
|
||||
"PubKey": "02769165A6F9950D023A415EE668B80BB96B5C9AE2035D97BDFB44F356175A44FF"
|
||||
}
|
||||
```
|
||||
|
@ -1,5 +1,5 @@
|
||||
# API v2 (для бирж и обменников)
|
||||
Работает с версии обновления 0.897
|
||||
Работает с версии обновления 0.901
|
||||
|
||||
|
||||
API предназначено для облегчения написания сторонних приложений. На стороне сервера выполняется криптография и операции POW. Поэтому оно не рекомендуется для публичного доступа, т.к. нет защиты от DDOS атак. Используйте его, если приложения такие как сервер биржи находятся в одной приватной сети.
|
||||
@ -158,8 +158,10 @@ return:
|
||||
```js
|
||||
{
|
||||
"result": 1,
|
||||
"SumCOIN": 580222966,
|
||||
"SumCENT": 527313901
|
||||
"SumCOIN": 5589146,
|
||||
"SumCENT": 555765670,
|
||||
"Currency": 0,
|
||||
"PubKey": "02769165A6F9950D023A415EE668B80BB96B5C9AE2035D97BDFB44F356175A44FF"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Telegram: https://web.telegram.org/#/im?p=@terafoundation
|
||||
*/
|
||||
|
||||
global.UPDATE_CODE_VERSION_NUM = 899;
|
||||
global.UPDATE_CODE_VERSION_NUM = 901;
|
||||
global.MIN_CODE_VERSION_NUM = 884;
|
||||
global.MINING_VERSION_NUM = 3;
|
||||
global.InitParamsArg = InitParamsArg;
|
||||
|
@ -104,9 +104,10 @@ WebApi2.GetBalance = function (Params,response)
|
||||
var arr = DApps.Accounts.GetRowsAccounts(ParseNum(Params.AccountID), 1);
|
||||
if(arr.length)
|
||||
{
|
||||
var Value = arr[0].Value;
|
||||
var Result = {result:1, SumCOIN:Value.SumCOIN, SumCENT:Value.SumCENT, PubKey:GetHexFromArr(arr[0].PubKey), Meta:Params.Meta,
|
||||
};
|
||||
var Account = arr[0];
|
||||
var Value = Account.Value;
|
||||
var Result = {result:1, SumCOIN:Value.SumCOIN, SumCENT:Value.SumCENT, Currency:Account.Currency, PubKey:GetHexFromArr(Account.PubKey),
|
||||
Meta:Params.Meta, };
|
||||
return Result;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user