SystemService
Get Version
Get the version and source revision of the build the environment serves.
Method
GET
Path
/v1/system/version
Visibility
Public endpoint
GET
/v1/system/version Request
Testnet
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/system/version' \ --header 'Accept: */*'
Responses
{
"commit": "4e21a2f0967068fc944f5229eead01985df301b9",
"environment": "testnet",
"version": "0.10.0"
} version string
Version of the exact build. A release reports its version in MAJOR.MINOR.PATCH form, such as "0.10.0". A build made after a release appends the number of source revisions since that release and "g" with the first 12 hexadecimal digits of its own revision, such as "0.10.0-12-g4e21a2f09670": 12 revisions after release 0.10.0. Releases before mainnet are 0.MINOR.PATCH; mainnet starts at 1.0.0.
Example
0.10.0 commit string
Full 40-character lowercase hexadecimal source revision of the build.
Example
4e21a2f0967068fc944f5229eead01985df301b9 environment string
Environment that answered: "devnet", "testnet" or "mainnet", or "local" for a development stack.
Example
testnet| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |