All URIs are relative to http://localhost:3000, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getAccountsNames() | POST /namespaces/account/names | Get readable names for a set of accountIds |
getMosaicsNames() | POST /namespaces/mosaic/names | Get readable names for a set of mosaics |
getNamespace() | GET /namespaces/{namespaceId} | Get namespace information |
getNamespaceMerkle() | GET /namespaces/{namespaceId}/merkle | Get namespace merkle information |
getNamespacesNames() | POST /namespaces/names | Get readable names for a set of namespaces |
searchNamespaces() | GET /namespaces | Search namespaces |
getAccountsNames($addresses): \SymbolRestClient\Model\AccountsNamesDTO
Get readable names for a set of accountIds
Returns friendly names for accounts.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NamespaceRoutesApi(
// 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()
);
$addresses = new \SymbolRestClient\Model\Addresses(); // \SymbolRestClient\Model\Addresses
try {
$result = $apiInstance->getAccountsNames($addresses);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NamespaceRoutesApi->getAccountsNames: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
addresses | \SymbolRestClient\Model\Addresses |
\SymbolRestClient\Model\AccountsNamesDTO
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getMosaicsNames($mosaic_ids): \SymbolRestClient\Model\MosaicsNamesDTO
Get readable names for a set of mosaics
Returns friendly names for mosaics.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NamespaceRoutesApi(
// 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()
);
$mosaic_ids = new \SymbolRestClient\Model\MosaicIds(); // \SymbolRestClient\Model\MosaicIds
try {
$result = $apiInstance->getMosaicsNames($mosaic_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NamespaceRoutesApi->getMosaicsNames: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
mosaic_ids | \SymbolRestClient\Model\MosaicIds |
\SymbolRestClient\Model\MosaicsNamesDTO
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNamespace($namespace_id): \SymbolRestClient\Model\NamespaceInfoDTO
Get namespace information
Gets the namespace for a given namespace identifier.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NamespaceRoutesApi(
// 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()
);
$namespace_id = 'namespace_id_example'; // string | Namespace identifier.
try {
$result = $apiInstance->getNamespace($namespace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NamespaceRoutesApi->getNamespace: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
namespace_id | string | Namespace identifier. |
\SymbolRestClient\Model\NamespaceInfoDTO
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNamespaceMerkle($namespace_id): \SymbolRestClient\Model\MerkleStateInfoDTO
Get namespace merkle information
Gets the namespace merkle for a given namespace identifier.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NamespaceRoutesApi(
// 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()
);
$namespace_id = 'namespace_id_example'; // string | Namespace identifier.
try {
$result = $apiInstance->getNamespaceMerkle($namespace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NamespaceRoutesApi->getNamespaceMerkle: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
namespace_id | string | Namespace identifier. |
\SymbolRestClient\Model\MerkleStateInfoDTO
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNamespacesNames($namespace_ids): \SymbolRestClient\Model\NamespaceNameDTO[]
Get readable names for a set of namespaces
Returns friendly names for namespaces.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NamespaceRoutesApi(
// 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()
);
$namespace_ids = new \SymbolRestClient\Model\NamespaceIds(); // \SymbolRestClient\Model\NamespaceIds
try {
$result = $apiInstance->getNamespacesNames($namespace_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NamespaceRoutesApi->getNamespacesNames: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
namespace_ids | \SymbolRestClient\Model\NamespaceIds |
\SymbolRestClient\Model\NamespaceNameDTO[]
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
searchNamespaces($owner_address, $registration_type, $level0, $alias_type, $page_size, $page_number, $offset, $order): \SymbolRestClient\Model\NamespacePage
Search namespaces
Gets an array of namespaces.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SymbolRestClient\Api\NamespaceRoutesApi(
// 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()
);
$owner_address = 'owner_address_example'; // string | Filter by owner address.
$registration_type = new \SymbolRestClient\Model\NamespaceRegistrationTypeEnum(); // NamespaceRegistrationTypeEnum | Filter by registration type.
$level0 = 'level0_example'; // string | Filter by root namespace.
$alias_type = new \SymbolRestClient\Model\AliasTypeEnum(); // AliasTypeEnum | Filter by alias type.
$page_size = 10; // int | Select the number of entries to return.
$page_number = 1; // int | Filter by page number.
$offset = 'offset_example'; // string | Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned.
$order = new \SymbolRestClient\Model\Order(); // Order | Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id.
try {
$result = $apiInstance->searchNamespaces($owner_address, $registration_type, $level0, $alias_type, $page_size, $page_number, $offset, $order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NamespaceRoutesApi->searchNamespaces: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
owner_address | string | Filter by owner address. | [optional] |
registration_type | NamespaceRegistrationTypeEnum | Filter by registration type. | [optional] |
level0 | string | Filter by root namespace. | [optional] |
alias_type | AliasTypeEnum | Filter by alias type. | [optional] |
page_size | int | Select the number of entries to return. | [optional] [default to 10] |
page_number | int | Filter by page number. | [optional] [default to 1] |
offset | string | Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. | [optional] |
order | Order | Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. | [optional] |
\SymbolRestClient\Model\NamespacePage
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]