Get networks
Retrieves a list of all blockchain networks supported by the platform.
HTTP request
GET /v1/networks/
Request
Header parameters
Requires authentication.
Body parameters
Doesn't require setting any parameters.
Response
Successful response
| Name | Type | Required | Description |
|---|---|---|---|
id | Number | Required | Network id. |
code | String | Required | Network code. |
name | String | Required | Network name. |
supports_custom_tokens | Bool | Optional | If parameter is set to true for a network, users can exchange custom tokens on that network. In this case, tokens returned by the API for the selected network represent popular tokens, but they do not form a complete list of all supported tokens. |
Sample response
application/json
[
{
"id": 1,
"code": "eth",
"name": "Ethereum",
"supports_custom_tokens": false
},
...
]
Error response
Check the error response schema.
Error codes
| Error code | Error type | Error description |
|---|---|---|
404 | http_error | Incorrect HTTP request. |
401 | authentication_error | Authentication error. |
500 | internal_error | Internal server error. |
- 401
- 404
- 500
{
"code": 401,
"type": "authentication_error",
"message": "Authentication error"
}
{
"code": 404,
"type": "http_error",
"message": "HTTP error"
}
{
"code": 500,
"type": "internal_error",
"message": "Internal server error"
}