docs: chain routes are /v1/chain

luxd serves chain APIs under one segment from constants.ChainAliasPrefix
(constants v1.6.4, node v1.36.181):

  /v1/bc/<alias>/...   -> /v1/chain/<alias>/...
  /ext/bc/<alias>/...  -> /v1/chain/<alias>/...

Observations keep their original addresses: a dated note or a recorded status
code is a fact about when it was written, not an instruction to follow.
This commit is contained in:
2026-08-30 17:43:25 -07:00
parent e41949ffc0
commit 07d6f6a9bb
6 changed files with 15 additions and 15 deletions
+4 -4
View File
@@ -443,7 +443,7 @@ curl -X POST -H "Content-Type: application/json" \
},
"id": 1
}' \
http://localhost:9650/v1/bc/B/rpc
http://localhost:9650/v1/chain/B/rpc
```
Response:
@@ -477,7 +477,7 @@ curl -X POST -H "Content-Type: application/json" \
"params": {},
"id": 1
}' \
http://localhost:9650/v1/bc/B/rpc
http://localhost:9650/v1/chain/B/rpc
```
Response:
@@ -513,7 +513,7 @@ curl -X POST -H "Content-Type: application/json" \
},
"id": 1
}' \
http://localhost:9650/v1/bc/B/rpc
http://localhost:9650/v1/chain/B/rpc
```
### bridge_slashSigner
@@ -533,7 +533,7 @@ curl -X POST -H "Content-Type: application/json" \
},
"id": 1
}' \
http://localhost:9650/v1/bc/B/rpc
http://localhost:9650/v1/chain/B/rpc
```
## Tests
+4 -4
View File
@@ -567,7 +567,7 @@ curl -X POST -H "Content-Type: application/json" \
},
"id": 1
}' \
http://localhost:9650/v1/bc/T/rpc
http://localhost:9650/v1/chain/T/rpc
```
### threshold_getSignature
@@ -582,7 +582,7 @@ curl -X POST -H "Content-Type: application/json" \
},
"id": 1
}' \
http://localhost:9650/v1/bc/T/rpc
http://localhost:9650/v1/chain/T/rpc
```
Response:
@@ -616,7 +616,7 @@ curl -X POST -H "Content-Type: application/json" \
},
"id": 1
}' \
http://localhost:9650/v1/bc/T/rpc
http://localhost:9650/v1/chain/T/rpc
```
### threshold_getPublicKey
@@ -631,7 +631,7 @@ curl -X POST -H "Content-Type: application/json" \
},
"id": 1
}' \
http://localhost:9650/v1/bc/T/rpc
http://localhost:9650/v1/chain/T/rpc
```
## Integration with B-Chain
+2 -2
View File
@@ -56,8 +56,8 @@ Lux DeFi protocol is powered by a comprehensive suite of audited smart contracts
| Network | Chain ID | RPC | Explorer |
|---------|----------|-----|----------|
| Lux Mainnet | 96369 | `https://api.lux.network/v1/bc/C/rpc` | `https://explorer.lux.network` |
| Lux Testnet | 96368 | `https://api.lux-test.network/v1/bc/C/rpc` | `https://explore.lux-test.network` |
| Lux Mainnet | 96369 | `https://api.lux.network/v1/chain/C/rpc` | `https://explorer.lux.network` |
| Lux Testnet | 96368 | `https://api.lux-test.network/v1/chain/C/rpc` | `https://explore.lux-test.network` |
## Contract Categories
+2 -2
View File
@@ -272,7 +272,7 @@ curl -X POST http://localhost:9650/v1/admin \
### Platform API
```bash
# Get validators
curl -X POST http://localhost:9650/v1/bc/P \
curl -X POST http://localhost:9650/v1/chain/P \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"platform.getCurrentValidators","params":{},"id":1}'
```
@@ -280,7 +280,7 @@ curl -X POST http://localhost:9650/v1/bc/P \
### Exchange API
```bash
# Get balance
curl -X POST http://localhost:9650/v1/bc/X \
curl -X POST http://localhost:9650/v1/chain/X \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"avm.getBalance","params":{"address":"X-lux1...","assetID":"LUX"},"id":1}'
```
+2 -2
View File
@@ -252,7 +252,7 @@ const LUX_MAINNET = {
symbol: 'LUX',
decimals: 18
},
rpcUrls: ['https://api.lux.network/v1/bc/C/rpc'],
rpcUrls: ['https://api.lux.network/v1/chain/C/rpc'],
blockExplorerUrls: ['https://explorer.lux.network']
};
```
@@ -268,7 +268,7 @@ const LUX_TESTNET = {
symbol: 'LUX',
decimals: 18
},
rpcUrls: ['https://api.testnet.lux.network/v1/bc/C/rpc'],
rpcUrls: ['https://api.testnet.lux.network/v1/chain/C/rpc'],
blockExplorerUrls: ['https://testnet.explorer.lux.network']
};
```
+1 -1
View File
@@ -84,7 +84,7 @@ async function addLuxNetwork() {
symbol: 'LUX',
decimals: 18
},
rpcUrls: ['https://api.lux.network/v1/bc/C/rpc'],
rpcUrls: ['https://api.lux.network/v1/chain/C/rpc'],
blockExplorerUrls: ['https://explorer.lux.network']
}]
});