Upstreams¶
erpc.upstreams ¶
Upstream configuration dataclasses for eRPC.
UpstreamConfig
dataclass
¶
Configuration for a single eRPC upstream.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
Unique upstream identifier. |
endpoint |
str
|
RPC endpoint URL. |
type |
str
|
Upstream type (e.g. |
vendor_name |
str
|
Provider vendor name for provider-specific optimisations. |
allowed_methods |
list[str]
|
Allowlist of JSON-RPC methods. Empty means all allowed. |
ignored_methods |
list[str]
|
Denylist of JSON-RPC methods. |
failsafe |
dict[str, Any]
|
Failsafe policy overrides for this upstream. |
json_rpc |
dict[str, Any]
|
JSON-RPC-level configuration overrides. |
Source code in erpc/upstreams.py
to_dict ¶
Serialise this upstream config to an eRPC-compatible dictionary.