All URIs are relative to http://localhost:3000, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getNodeHealth() | GET /node/health | Get the node health information |
getNodeInfo() | GET /node/info | Get the node information |
getNodePeers() | GET /node/peers | Get peers information |
getNodeStorage() | GET /node/storage | Get the storage information of the node |
getNodeTime() | GET /node/time | Get the node time |
getServerInfo() | GET /node/server | Get the version of the running REST component |
getUnlockedAccount() | GET /node/unlockedaccount | Get the unlocked harvesting account public keys. |
getNodeHealth(): \SymbolRestClient\Model\NodeHealthInfoDTO
Get the node health information
Supplies information regarding the connection and services status.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NodeRoutesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->getNodeHealth();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NodeRoutesApi->getNodeHealth: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SymbolRestClient\Model\NodeHealthInfoDTO
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNodeInfo(): \SymbolRestClient\Model\NodeInfoDTO
Get the node information
Supplies additional information about the application running on a node.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NodeRoutesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->getNodeInfo();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NodeRoutesApi->getNodeInfo: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SymbolRestClient\Model\NodeInfoDTO
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNodePeers(): \SymbolRestClient\Model\NodeInfoDTO[]
Get peers information
Gets the list of peers visible by the node.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NodeRoutesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->getNodePeers();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NodeRoutesApi->getNodePeers: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SymbolRestClient\Model\NodeInfoDTO[]
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNodeStorage(): \SymbolRestClient\Model\StorageInfoDTO
Get the storage information of the node
Returns storage information about the node.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NodeRoutesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->getNodeStorage();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NodeRoutesApi->getNodeStorage: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SymbolRestClient\Model\StorageInfoDTO
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNodeTime(): \SymbolRestClient\Model\NodeTimeDTO
Get the node time
Gets the node time at the moment the reply was sent and received.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NodeRoutesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->getNodeTime();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NodeRoutesApi->getNodeTime: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SymbolRestClient\Model\NodeTimeDTO
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getServerInfo(): \SymbolRestClient\Model\ServerInfoDTO
Get the version of the running REST component
Returns the version of the running catapult-rest component.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NodeRoutesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->getServerInfo();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NodeRoutesApi->getServerInfo: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SymbolRestClient\Model\ServerInfoDTO
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getUnlockedAccount(): \SymbolRestClient\Model\UnlockedAccountDTO
Get the unlocked harvesting account public keys.
Returns array of unlocked account public keys.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NodeRoutesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->getUnlockedAccount();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NodeRoutesApi->getUnlockedAccount: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SymbolRestClient\Model\UnlockedAccountDTO
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]