Network routes implementation
Note: OpenAPI documentation for these endpoints can be found in the openapi.rs file
Lists all networks with pagination support.
AuthorizationBearer <token>
In: header
Query Parameters
page?integer
Page number for pagination (starts at 1)
Range
0 <= valueper_page?integer
Number of items per page (default: 10)
Range
0 <= valueResponse Body
curl -X GET "https://loading/api/v1/networks?page=0&per_page=0"{
"data": [
{
"average_blocktime_ms": 0,
"chain_id": 0,
"explorer_urls": [
"string"
],
"features": [
"string"
],
"horizon_url": "string",
"id": "string",
"is_testnet": true,
"name": "string",
"network_type": "evm",
"passphrase": "string",
"required_confirmations": 0,
"rpc_urls": [
{
"url": "https://rpc.example.com",
"weight": 100
}
],
"symbol": "string",
"tags": [
"string"
]
}
],
"error": "string",
"metadata": {
"logs": [
{
"level": "log",
"message": "string"
}
],
"traces": [
null
]
},
"pagination": {
"current_page": 0,
"per_page": 0,
"total_items": 0
},
"success": true
}{
"data": null,
"message": "Bad Request",
"success": false
}{
"data": null,
"message": "Unauthorized",
"success": false
}{
"data": null,
"message": "Internal Server Error",
"success": false
}