-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from HorizenOfficial/development
version 1.4.0 to master
- Loading branch information
Showing
42 changed files
with
1,696 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[< EON API Documentation](/doc/api/index.md) | ||
### metrics | ||
|
||
Returns metrics about this node in Prometheus format. | ||
|
||
**Parameters** | ||
|
||
No parameters | ||
|
||
**Example request** | ||
|
||
curl -sX POST 'http://127.0.0.1:9085/metrics' -H 'Content-Type: application/json' -H 'accept: application/json' | ||
|
||
**Response** | ||
|
||
The metrics will be exposed one line per metric, in this format: | ||
|
||
``` | ||
metric_id value | ||
``` | ||
|
||
Available metrics: | ||
|
||
Following metrics will be available (also listed in the endpoint /metrics/help): | ||
|
||
- **block_apply_time**<br> | ||
Time to apply block to node wallet and state (milliseconds) | ||
- **block_apply_time_fromslotstart**<br> | ||
Delta between timestamp when block has been applied successfully on this node and start timestamp of the slot it belongs to (milliseconds) | ||
- **block_applied_ok**<br> | ||
Number of received blocks applied successfully (absolute value since start of the node) | ||
- **block_applied_ko**<br> | ||
Number of received blocks not applied (absolute value since start of the node) | ||
- **mempool_size**<br> | ||
Mempool size (number of transactions in this node mempool) | ||
- **forge_block_count**<br> | ||
Number of forged blocks by this node (absolute value since start of the node) | ||
- **forge_lottery_time**<br> | ||
Time to execute the lottery (milliseconds) | ||
- **forge_blockcreation_time**<br> | ||
Time to create a new forged block (calculated from the start timestamp of the slot it belongs to) (milliseconds) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[< EON API Documentation](/doc/api/index.md) | ||
### transaction/pagedForgerStakesByDelegator | ||
|
||
Returns the paginated list of forging stakes, filtered by a specific delegator.<br> | ||
Available from: EON 1.4.0 | ||
|
||
**Parameters** | ||
|
||
| Name | Type | Required | Description | | ||
| -------- | ------- | ------- | ------- | | ||
| delegatorAddress | address | yes | Address of the delegator | | ||
| startPos | integer | no (default 0) | Start position in the paginated list | | ||
| size | integer | no (default 10)| Number of records to return | | ||
|
||
**Example request** | ||
|
||
curl -sX POST 'http://127.0.0.1:9085/transaction/pagedForgerStakesByDelegator' -H 'Content-Type: application/json' -H 'accept: application/json' -d <requestBody> | ||
|
||
The request body format is like this: | ||
|
||
{ | ||
"delegatorAddress": "62b1bc6fd237b775138d910274ff2911d7aea5cc", | ||
"startPos": 0, | ||
"size": 10 | ||
} | ||
|
||
|
||
**Example response** | ||
|
||
{ | ||
"result" : { | ||
"nextPos": 10, | ||
"stakes" : [ { | ||
"forgerPublicKeys" : { | ||
"blockSignPublicKey" : { | ||
"publicKey" : "10e9b5236a56cddb9f0332e9dd6d69151494f24172b26ab24a27473bbc92a181" | ||
}, | ||
"vrfPublicKey" : { | ||
"publicKey" : "6a376f8a88b386f69296baa0792641d393c85a19b28dfd4a11d8f0a74618873280" | ||
} | ||
}, | ||
"stakedAmount" : 1000000000000000000 | ||
}, { | ||
"forgerPublicKeys" : { | ||
"blockSignPublicKey" : { | ||
"publicKey" : "4172b26ab24a27473bbc910e9b5236a56cddb9f0332e9dd6d69151494f22a181" | ||
}, | ||
"vrfPublicKey" : { | ||
"publicKey" : "aa0792641d393c85a19b28dfd4a6a376f8a88b386f69296b11d8f0a74618873280" | ||
} | ||
}, | ||
"stakedAmount" : 99000000000000000000 | ||
}] | ||
} | ||
} |
Oops, something went wrong.