-
Notifications
You must be signed in to change notification settings - Fork 0
API Documentation
api-server
GET /chain/:accessibility(private|public)/:chainName
Name | Type | Description |
---|---|---|
accessibility | String | Private or public |
chainName | String | Name of the chain to retieve data for |
startTime | Number |
optional Start time of timespan to get data for |
endTime | Number |
optional End time of timespan to get data for |
target | Strign | Target system the chain is running on |
numberOfItems | Number |
optional Number of data entries to retrieve (max: 100000) |
GET /chain
POST /chain
Name | Type | Description |
---|---|---|
parameters | Object | JSON-Object containing parameters to be set and their values. Can also contain a scenario name. |
chainName | String | Name of the chain to configure |
target | String | Target system the chain is running on |
POST /chain/private/:chainName
Name | Type | Description |
---|---|---|
chainName | String | Name of the chain to store data for |
hostId | String | Host Id of the node |
chainName | String | Name of the running chain |
target | String | Target system the node is running on |
isMining | Boolean | Whether the node is mining or not |
hashrate | Number | Hashrate of the node |
avgBlocktime | Number | Average blocktime the node observed |
blockSize | Number | Blocksize of the last blocks |
avgDifficulty | Number | Average difficulty of the last blocks |
avgTransactions | Number | Average transactions |
cpuUsage | Number | CPU usage in percent |
GET /log
Name | Type | Description |
---|---|---|
startTime | Number |
optional Start time of timespan to get data for as UTC timestamp |
endTime | Number |
optional End time of timespan to get data for as UTC timestamp |
numberOfItems | Number |
optional Number of data entries to retrieve (max: 100000) |
logLevel | String |
optional Lowest Log level to be retrieved. Can be 'trace', 'debug', 'info', 'warn', 'error' or 'fatal'. Defaults to 'trace'. |
POST /recordings/cancel
GET /recordings
GET /recordings/isRecording
POST /recordings/start
Name | Type | Description |
---|---|---|
name | String | Name of the recording that is to be started |
POST /recordings/stop
POST /scenarios
Name | Type | Description |
---|---|---|
fileName | String | Name of the uploaded scenario |
description | String |
optional String desribing the scenario |
payloadSize | Number | Payload size of each transaction |
period | Number | The period time of transactions |
numberOfNodes | Number | The number of nodes for this scenario |
GET /scenarios
Name | Type | Description |
---|---|---|
id | String |
optional Id of the scenario to filter for |
POST /scenarios/upload
Name | Type | Description |
---|---|---|
fileName | String | Name of the uploaded scenario |
description | String |
optional String desribing the scenario |
GET /user/check
POST /user/create
Name | Type | Description |
---|---|---|
username | String | Unique username of user to create |
password | String | Password for new user |
POST /user/login
https://github.com/BPChain/meta/wiki/API-Documentation
Name | Type | Description |
---|---|---|
username | String | Username to log in with |
password | String | Password for user |
POST /user/logout