Skip to content

Commit 594a8ff

Browse files
authored
Add new network support (#1776)
* Add Swellchain support. Signed-off-by: bgravenorst <[email protected]> * Add debug methods. Signed-off-by: bgravenorst <[email protected]> * Remove Websockets for debug. Signed-off-by: bgravenorst <[email protected]> * What's new. Signed-off-by: bgravenorst <[email protected]> * Add endpoint. Signed-off-by: bgravenorst <[email protected]> * Remove debug methods. Signed-off-by: bgravenorst <[email protected]> * partners update. Signed-off-by: bgravenorst <[email protected]> --------- Signed-off-by: bgravenorst <[email protected]>
1 parent c30059a commit 594a8ff

File tree

81 files changed

+2143
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2143
-21
lines changed

docs/whats-new.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
1111

1212
## December 2024
1313

14+
- Documented [Swellchain](/services/reference/swellchain) support. ([#1776](https://github.com/MetaMask/metamask-docs/pull/1776))
1415
- Documented [Snap Notifications Expanded View](/snaps/features/notifications/#expanded-view).
1516
([#1774](https://github.com/MetaMask/metamask-docs/pull/1774))
1617
- Documented [`snap_getInterfaceContext`](/snaps/reference/snaps-api/#snap_getinterfacecontext).

services/get-started/endpoints.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ Include your authentication details when [making IPFS requests](/reference/ipfs/
155155
| Mainnet | JSON-RPC over HTTPS | `https://starknet-mainnet.infura.io/v3/<YOUR-API-KEY>` |
156156
| Testnet (Sepolia) | JSON-RPC over HTTPS | `https://starknet-sepolia.infura.io/v3/<YOUR-API-KEY>` |
157157

158+
## Swellchain
159+
160+
| Network | Description | URL |
161+
|---------|---------------------|----------------------------------------------------------|
162+
| Mainnet | JSON-RPC over HTTPS | `https://swellchain-mainnet.infura.io/v3/<YOUR-API-KEY>` |
163+
| Testnet | JSON-RPC over HTTPS | `https://swellchain-testnet.infura.io/v3/<YOUR-API-KEY>` |
164+
158165
## Unichain
159166

160167
| Network | Description | URL |
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
description: Swellchain documentation.
3+
---
4+
5+
import CardList from '@site/src/components/CardList'
6+
7+
# Swellchain
8+
9+
:::note Decentralized Infrastructure Network (DIN)
10+
11+
Swellchain is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service,
12+
meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies).
13+
14+
:::
15+
16+
Swellchain is a Layer 2 (L2) network built on the [OP Stack](https://docs.optimism.io/stack/getting-started#the-op-stack-today).
17+
The network extends Ethereum's security using EigenLayer's restaking mechanism, and uses Optimism's reliable
18+
infrastructure for efficient transaction processing and scalability.
19+
20+
:::info See also
21+
22+
- The [official Swellchain documentation](https://build.swellnetwork.io/) for more information.
23+
- The official
24+
[Optimism Ethereum JSON-RPC API documentation](https://docs.optimism.io/builders/node-operators/json-rpc)
25+
(Bedrock release) for custom Swellchain methods.
26+
27+
:::
28+
29+
Select an option below to get started with the Swellchain network.
30+
31+
<CardList
32+
items={[
33+
{
34+
href: "quickstart",
35+
title: "Quickstart",
36+
description: "Learn how to quickly connect and make calls to Swellchain."
37+
},
38+
{
39+
href: "json-rpc-methods",
40+
title: "JSON-RPC APIs",
41+
description: "View the APIs available for communicating with Swellchain."
42+
},
43+
{
44+
href: "../../../developer-tools/dashboard/get-started/create-api/",
45+
title: "Create an API key",
46+
description: "Learn how to create an API key and secure and share it with your team."
47+
}
48+
]}
49+
/>
50+
51+
## Partners and privacy policies
52+
53+
The following partners provide access to Swellchain:
54+
- Infstones ([Privacy Policy](https://infstones.com/terms/privacy-notice))
55+
- NorthWest Nodes
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import Tabs from "@theme/Tabs"
2+
import TabItem from "@theme/TabItem"
3+
4+
<Tabs>
5+
<TabItem value="curl">
6+
7+
```bash
8+
curl https://swellchain-mainnet.infura.io/v3/<YOUR-API-KEY> \
9+
-X POST \
10+
-H "Content-Type: application/json" \
11+
-d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}'
12+
```
13+
14+
</TabItem>
15+
</Tabs>
16+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Tabs from "@theme/Tabs";
2+
import TabItem from "@theme/TabItem";
3+
4+
<Tabs>
5+
<TabItem value="curl">
6+
7+
```bash
8+
curl https://swellchain-mainnet.infura.io/v3/<YOUR-API-KEY> \
9+
-X POST \
10+
-H "Content-Type: application/json" \
11+
-d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'
12+
```
13+
14+
</TabItem>
15+
</Tabs>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Tabs from "@theme/Tabs"
2+
import TabItem from "@theme/TabItem"
3+
4+
<Tabs>
5+
<TabItem value="curl">
6+
7+
```bash
8+
curl https://swellchain-mainnet.infura.io/v3/<YOUR-API-KEY> \
9+
-X POST \
10+
-H "Content-Type: application/json" \
11+
-d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}'
12+
```
13+
14+
</TabItem>
15+
</Tabs>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Tabs from "@theme/Tabs"
2+
import TabItem from "@theme/TabItem"
3+
4+
<Tabs>
5+
<TabItem value="curl">
6+
7+
```bash
8+
curl https://swellchain-mainnet.infura.io/v3/<YOUR-API-KEY> \
9+
-X POST \
10+
-H "Content-Type: application/json" \
11+
-d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}'
12+
```
13+
14+
</TabItem>
15+
</Tabs>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Tabs from "@theme/Tabs"
2+
import TabItem from "@theme/TabItem"
3+
4+
<Tabs>
5+
<TabItem value="curl">
6+
7+
```bash
8+
curl https://swellchain-mainnet.infura.io/v3/<YOUR-API-KEY> \
9+
-X POST \
10+
-H "Content-Type: application/json" \
11+
-d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}'
12+
```
13+
14+
</TabItem>
15+
</Tabs>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Tabs from "@theme/Tabs"
2+
import TabItem from "@theme/TabItem"
3+
4+
<Tabs>
5+
<TabItem value="curl">
6+
7+
```bash
8+
curl https://swellchain-mainnet.infura.io/v3/<YOUR-API-KEY> \
9+
-X POST \
10+
-H "Content-Type: application/json" \
11+
-d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }'
12+
```
13+
14+
</TabItem>
15+
</Tabs>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Tabs from "@theme/Tabs"
2+
import TabItem from "@theme/TabItem"
3+
4+
<Tabs>
5+
<TabItem value="curl">
6+
7+
```bash
8+
curl https://swellchain-mainnet.infura.io/v3/<YOUR-API-KEY> \
9+
-X POST \
10+
-H "Content-Type: application/json" \
11+
-d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}'
12+
```
13+
14+
</TabItem>
15+
</Tabs>

0 commit comments

Comments
 (0)