Skip to content

Commit 7176e41

Browse files
committed
chore: Improvements
1 parent 52928a7 commit 7176e41

File tree

7 files changed

+1159
-47
lines changed

7 files changed

+1159
-47
lines changed

openapi.json

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4253,8 +4253,9 @@
42534253
"custom_rpc_urls": {
42544254
"type": "array",
42554255
"items": {
4256-
"$ref": "#/components/schemas/RpcConfig"
4257-
}
4256+
"$ref": "#/components/schemas/MaskedRpcConfig"
4257+
},
4258+
"description": "Custom RPC URLs with sensitive path/query parameters masked for security.\nThe domain is visible to identify providers (e.g., Alchemy, Infura) but\nAPI keys embedded in paths are hidden."
42584259
},
42594260
"disabled_reason": {
42604261
"$ref": "#/components/schemas/DisabledReason"
@@ -4885,8 +4886,9 @@
48854886
"custom_rpc_urls": {
48864887
"type": "array",
48874888
"items": {
4888-
"$ref": "#/components/schemas/RpcConfig"
4889-
}
4889+
"$ref": "#/components/schemas/MaskedRpcConfig"
4890+
},
4891+
"description": "Custom RPC URLs with sensitive path/query parameters masked for security.\nThe domain is visible to identify providers (e.g., Alchemy, Infura) but\nAPI keys embedded in paths are hidden."
48904892
},
48914893
"disabled_reason": {
48924894
"$ref": "#/components/schemas/DisabledReason"
@@ -6058,6 +6060,31 @@
60586060
"result"
60596061
]
60606062
},
6063+
"MaskedRpcConfig": {
6064+
"type": "object",
6065+
"description": "RPC configuration with masked URL for API responses.\n\nThis type is used in API responses to prevent exposing sensitive API keys\nthat are often embedded in RPC endpoint URLs (e.g., Alchemy, Infura, QuickNode).\nThe URL path and query parameters are masked while keeping the host visible,\nallowing users to identify which provider is configured.",
6066+
"required": [
6067+
"url",
6068+
"weight"
6069+
],
6070+
"properties": {
6071+
"url": {
6072+
"type": "string",
6073+
"description": "The RPC endpoint URL with path/query masked."
6074+
},
6075+
"weight": {
6076+
"type": "integer",
6077+
"format": "int32",
6078+
"description": "The weight of this endpoint in the weighted round-robin selection.",
6079+
"maximum": 100,
6080+
"minimum": 0
6081+
}
6082+
},
6083+
"example": {
6084+
"url": "https://eth-mainnet.g.alchemy.com/***",
6085+
"weight": 100
6086+
}
6087+
},
60616088
"MemoSpec": {
60626089
"oneOf": [
60636090
{
@@ -6734,8 +6761,9 @@
67346761
"custom_rpc_urls": {
67356762
"type": "array",
67366763
"items": {
6737-
"$ref": "#/components/schemas/RpcConfig"
6738-
}
6764+
"$ref": "#/components/schemas/MaskedRpcConfig"
6765+
},
6766+
"description": "Custom RPC URLs with sensitive path/query parameters masked for security.\nThe domain is visible to identify providers (e.g., Alchemy, Infura) but\nAPI keys embedded in paths are hidden."
67396767
},
67406768
"disabled_reason": {
67416769
"$ref": "#/components/schemas/DisabledReason"

0 commit comments

Comments
 (0)