You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Update documentation for controller PR #1769 (#42)
Updates documentation to reflect changes made in:
fix: switch precedence of cartridgeChains and provided chains
Related controller PR: cartridge-gg/controller#1769
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Daniel Kronovet <kronovet@gmail.com>
Copy file name to clipboardExpand all lines: src/pages/controller/configuration.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ export type Chain = {
16
16
17
17
exporttypeControllerOptions= {
18
18
// Chain configuration
19
-
chains?:Chain[]; // Custom RPC endpoints for slot katana instances
19
+
chains?:Chain[]; // Custom RPC endpoints (takes precedence over default chains)
20
20
defaultChainId?:string; // Default chain to use (hex encoded). If using Starknet React, this gets overridden by the same param in StarknetConfig
21
21
22
22
// Session options
@@ -29,6 +29,30 @@ export type ControllerOptions = {
29
29
};
30
30
```
31
31
32
+
## Chain Configuration
33
+
34
+
Controller provides default Cartridge RPC endpoints for Starknet mainnet and sepolia networks:
35
+
-`https://api.cartridge.gg/x/starknet/mainnet`
36
+
-`https://api.cartridge.gg/x/starknet/sepolia`
37
+
38
+
When you provide custom chains via the `chains` option, they take precedence over the default Cartridge chains if they specify the same network. This allows you to:
39
+
- Use custom RPC endpoints for mainnet or sepolia
40
+
- Add support for additional networks (like Slot katana instances)
0 commit comments