Servers
Define server URLs and transport mechanisms for your JSON-RPC API
Define server URLs and transport mechanisms for your JSON-RPC API
OpenRPC allows you to specify one or more server configurations that define how clients can connect to your JSON-RPC API.
Specifying servers is valuable for both SDKs and Docs:
JSON-RPC can be used over various transport protocols:
Use variables to make your server configurations more flexible:
Configure different environments with appropriate descriptions:
Add server-specific metadata and configurations:
Configure multiple server URLs for load balancing:
Configure WebSocket servers with connection parameters:
Configure authentication and security at the server level:
Configure servers for specific use cases:
Server configurations help clients understand how to connect to your JSON-RPC API and which transport mechanism is most appropriate for their use case.