UNPKG

@openzeppelin/relayer-sdk

Version:
27 lines (26 loc) 1.15 kB
/** * OpenZeppelin Relayer API * OpenZeppelin Relayer API * * The version of the OpenAPI document: 1.3.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { RpcUrlEntry } from './rpc-url-entry'; /** * Request structure for updating a network configuration. Currently supports updating RPC URLs only. Can be extended to support other fields. * @export * @interface UpdateNetworkRequest */ export interface UpdateNetworkRequest { [key: string]: any; /** * 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. * @type {Array<RpcUrlEntry>} * @memberof UpdateNetworkRequest */ 'rpc_urls'?: Array<RpcUrlEntry>; }