Skip to content

Latest commit

 

History

History
90 lines (55 loc) · 2.84 KB

File metadata and controls

90 lines (55 loc) · 2.84 KB

NetworksApi

All URIs are relative to http://localhost

Method HTTP request Description
getNetwork GET /api/v1/networks/{network_id} Retrieves details of a specific network by ID.
listNetworks GET /api/v1/networks Network routes implementation
updateNetwork PATCH /api/v1/networks/{network_id} Updates a network's configuration. Currently supports updating RPC URLs only. Can be extended to support other fields.

getNetwork

ApiResponse_NetworkResponse getNetwork(network_id)

Retrieves details of a specific network by ID.

Parameters

Name Type Description Notes
network_id String Network ID (e.g., evm:sepolia, solana:mainnet) [default to null]

Return type

ApiResponse_NetworkResponse

Authorization

bearer_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

listNetworks

ApiResponse_Vec_NetworkResponse listNetworks(page, per_page)

Network routes implementation

Note: OpenAPI documentation for these endpoints can be found in the `openapi.rs` file  Lists all networks with pagination support.

Parameters

Name Type Description Notes
page Integer Page number for pagination (starts at 1) [optional] [default to null]
per_page Integer Number of items per page (default: 10) [optional] [default to null]

Return type

ApiResponse_Vec_NetworkResponse

Authorization

bearer_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

updateNetwork

ApiResponse_NetworkResponse updateNetwork(network_id, UpdateNetworkRequest)

Updates a network's configuration. Currently supports updating RPC URLs only. Can be extended to support other fields.

Parameters

Name Type Description Notes
network_id String Network ID (e.g., evm:sepolia, solana:mainnet) [default to null]
UpdateNetworkRequest UpdateNetworkRequest

Return type

ApiResponse_NetworkResponse

Authorization

bearer_auth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json