Give M-Chain and K-Chain a door

Both run on the primary network — platform.getBlockchains returns M-Chain and
K-Chain alongside C, P, X and the rest, and genesis builds them from mpcvm and
keyvm. Neither had a route, so /v1/chain/M and /v1/chain/K answered 404 while
the chains behind them produced blocks.

They are the decentralized path for MPC signing and key management, so the
gateway has to be able to reach them before anything can use them in place of
the centralized services.

Cloned from the P-Chain entry, so rate limits, encoding and backend shape match
the chain it sits beside rather than inventing new ones.
This commit is contained in:
2026-09-01 10:10:41 -07:00
parent b9228c73ec
commit 22aa69caa1
2 changed files with 88 additions and 0 deletions
+44
View File
@@ -87,6 +87,50 @@
}
]
},
{
"endpoint": "/v1/chain/M",
"method": "POST",
"output_encoding": "no-op",
"extra_config": {
"qos/ratelimit/router": {
"max_rate": 100,
"client_max_rate": 20,
"strategy": "ip",
"capacity": 200
}
},
"backend": [
{
"encoding": "no-op",
"host": [
"http://luxd-headless.lux-mainnet.svc:9630"
],
"url_pattern": "/v1/chain/M"
}
]
},
{
"endpoint": "/v1/chain/K",
"method": "POST",
"output_encoding": "no-op",
"extra_config": {
"qos/ratelimit/router": {
"max_rate": 100,
"client_max_rate": 20,
"strategy": "ip",
"capacity": 200
}
},
"backend": [
{
"encoding": "no-op",
"host": [
"http://luxd-headless.lux-mainnet.svc:9630"
],
"url_pattern": "/v1/chain/K"
}
]
},
{
"endpoint": "/v1/P",
"method": "POST",
+44
View File
@@ -123,6 +123,50 @@
}
}
},
{
"endpoint": "/v1/chain/M",
"method": "POST",
"output_encoding": "no-op",
"backend": [
{
"url_pattern": "/v1/chain/M",
"host": [
"http://luxd-headless.lux-mainnet.svc.cluster.local:9630"
],
"encoding": "no-op"
}
],
"extra_config": {
"qos/ratelimit/router": {
"max_rate": 100,
"client_max_rate": 20,
"strategy": "ip",
"capacity": 200
}
}
},
{
"endpoint": "/v1/chain/K",
"method": "POST",
"output_encoding": "no-op",
"backend": [
{
"url_pattern": "/v1/chain/K",
"host": [
"http://luxd-headless.lux-mainnet.svc.cluster.local:9630"
],
"encoding": "no-op"
}
],
"extra_config": {
"qos/ratelimit/router": {
"max_rate": 100,
"client_max_rate": 20,
"strategy": "ip",
"capacity": 200
}
}
},
{
"endpoint": "/v1/chain/X",
"method": "POST",