Updates a network's configuration. Currently supports updating RPC URLs only. Can be extended to support other fields.
AuthorizationBearer <token>
In: header
Path Parameters
network_idstring
Network ID (e.g., evm:sepolia, solana:mainnet)
rpc_urls?array<RpcUrlEntry>
List of RPC endpoint configurations for connecting to the network. Supports multiple formats:
- Array of strings:
["https://rpc.example.com"](defaults to weight 100) - Array of RpcConfig objects:
[{"url": "https://rpc.example.com", "weight": 100}] - Mixed array:
["https://rpc1.com", {"url": "https://rpc2.com", "weight": 100}]Must be non-empty and contain valid HTTP/HTTPS URLs if provided.
Response Body
curl -X PATCH "https://loading/api/v1/networks/string" \ -H "Content-Type: application/json" \ -d '{}'{
"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": "Network with ID 'evm:sepolia' not found",
"success": false
}{
"data": null,
"message": "Internal Server Error",
"success": false
}