Skip to content

Commit f0b089a

Browse files
committed
Add Hemi support.
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
1 parent 9f3f0aa commit f0b089a

File tree

52 files changed

+769
-36
lines changed

Some content is hidden

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

52 files changed

+769
-36
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Returns the output root at a specific block. This method retrieves the L2 output root hash for the specified block number.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Replace `<YOUR-API-KEY>` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- `block number`: [_Required_] A hexadecimal block number specifying which block to get the output root for.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```bash
2+
curl https://hemi-testnet.infura.io/v3/<YOUR-API-KEY> \
3+
-X POST \
4+
-H "Content-Type: application/json" \
5+
-d '{
6+
"jsonrpc": "2.0",
7+
"method": "optimism_outputAtBlock",
8+
"params": ["0x1b4"],
9+
"id": 1
10+
}'
11+
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
```json
2+
{
3+
"jsonrpc": "2.0",
4+
"id": 1,
5+
"result": [
6+
"0x0000000000000000000000000000000000000000000000000000000000000000",
7+
"0xabe711e34c1387c8c56d0def8ce77e454d6a0bfd26cef2396626202238442421"
8+
]
9+
}
10+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
An array containing two hexadecimal strings:
2+
- First element: The output root hash (32 bytes)
3+
- Second element: The withdrawals storage root hash (32 bytes)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Returns the rollup configuration parameters including genesis information, timing parameters, and important contract addresses.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Replace `<YOUR-API-KEY>` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
None
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```bash
2+
curl https://hemi-testnet.infura.io/v3/<YOUR-API-KEY> \
3+
-X POST \
4+
-H "Content-Type: application/json" \
5+
-d '{
6+
"jsonrpc": "2.0",
7+
"method": "optimism_rollupConfig",
8+
"params": [],
9+
"id": 1
10+
}'
11+
```

0 commit comments

Comments
 (0)