This commit is contained in:
progr76@gmail.com
2019-02-21 17:31:48 +03:00
parent 501ea7c584
commit 572a61a6a6
35 changed files with 4230 additions and 95 deletions

View File

@@ -229,7 +229,6 @@ return:
option to set parameters for organizing page navigation:
* NextPos - history line ID number (this value is taken from the last line of the previous result)
* Count - number of rows returned
Advanced setting:
* GetTxID - if set to 1, the transaction ID in hex-format is returned in the TxID field
@@ -250,15 +249,15 @@ return:
"result": 1,
"History": [
{
"Type": 1,
"BlockNum": 19994502,
"TrNum": 0,
"Pos": 498190,
"NextPos": 439090,
"Direct": "+",
"CorrID": 190478,
"SumCOIN": 1,
"SumCENT": 0
"Type": 1, //<---- History item type (currently only type 1 is supported)
"BlockNum": 19994502, //<---- number of the block in which the transaction is recorded
"TrNum": 0, //<---- the line number of the block in which the transaction is recorded
"Pos": 498190, //<---- position in the index file history (this position can be overwritten by overwriting the transaction, such as downloaded another block chain or run RewriteTransactions)
"NextPos": 439090, //<---- next position in the index file
"Direct": "+", //<---- "+"receipt of money," - " withdrawal of money
"CorrID": 190478, //<---- corresponding account (where the money came from or Vice versa where it went)
"SumCOIN": 1, //<---- Sum of the whole part of coins
"SumCENT": 0 //<---- The sum of the fractional parts of coins
},
{
"Type": 1,
@@ -273,15 +272,15 @@ return:
}
],
"Tail": {
"NextPos": 498190,
"Reserv": {
"NextPos": 498190, //<---- link to the most recent transaction history update (i.e. the most recent history)
"Reserv": { //<---- not used (reserved for future versions)
"type": "Buffer",
"data": [
0,
0
]
},
"Num": 190480
"Num": 190480 //<---- account ID
}
}
```

View File

@@ -240,7 +240,6 @@ return:
вариант задания параметров для организации постраничной навигации:
* NextPos - номер ид строки истории (это значение берется из последней строки предыдущего результата)
* Count - число возвращаемых строк
Дополнительные параметры:
* GetTxID - если стоит 1 - то возвращается в поле TxID возвращается ID транзакции в 16 формате
@@ -261,15 +260,15 @@ return:
"result": 1,
"History": [
{
"Type": 1,
"BlockNum": 19994502,
"TrNum": 0,
"Pos": 498190,
"NextPos": 439090,
"Direct": "+",
"CorrID": 190478,
"SumCOIN": 1,
"SumCENT": 0
"Type": 1, //<---- Тип элемента истории (пока поддерживается тип 1)
"BlockNum": 19994502, //<---- номер блока в котором записана транзакция
"TrNum": 0, //<---- номер строки блока в котором записана транзакция
"Pos": 498190, //<---- позиция в файле индекса истории (эта позиция может быть перезаписана при перезаписи транзакции, например загружена другая цепочка блоков или выполнена команда RewriteTransactions)
"NextPos": 439090, //<---- следующая позиция в файле индекса
"Direct": "+", //<---- "+" поступление денег, "-" списание
"CorrID": 190478, //<---- корреспондирующий счет (откуда пришли деньги или наоборот куда ушли)
"SumCOIN": 1, //<---- Сумма целой части монет
"SumCENT": 0 //<---- Сумма дробной части монет
},
{
"Type": 1,
@@ -284,15 +283,15 @@ return:
}
],
"Tail": {
"NextPos": 498190,
"Reserv": {
"NextPos": 498190, //<---- ссылка на самое последнее обновление истории транзакции (т.е. самая новая история)
"Reserv": { //<---- не используется (зарезервировано для будущих версий)
"type": "Buffer",
"data": [
0,
0
]
},
"Num": 190480
"Num": 190480 //<---- номер счета
}
}
```