Skip to content

Commit 46244bf

Browse files
feat(ref): act-1566 - updated linea ref pages (#1722)
1 parent 55afd8e commit 46244bf

File tree

5 files changed

+40
-230
lines changed

5 files changed

+40
-230
lines changed
Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
11
---
22
title: "eth_getUncleByBlockHashAndIndex"
3+
hide_title: true
4+
hide_table_of_contents: true
35
---
46

5-
import Tabs from "@theme/Tabs"
6-
import TabItem from "@theme/TabItem"
7+
import ParserOpenRPC from "@site/src/components/ParserOpenRPC"
8+
import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc"
79

8-
import Description from "/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx"
9-
10-
<Description />
11-
12-
## Parameters
13-
14-
import Params from "/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx"
15-
16-
<Params />
17-
18-
## Returns
19-
20-
import Returns from "/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx"
21-
22-
<Returns />
23-
24-
## Example
25-
26-
import Example from "/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx"
27-
28-
<Example />
29-
30-
### Request
31-
32-
import Request from "./_eth_getunclebyblockhashandindex-request.mdx"
33-
34-
<Request />
35-
36-
### Response
37-
38-
import Response from "/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx"
39-
40-
<Response />
10+
<ParserOpenRPC
11+
network={NETWORK_NAMES.linea}
12+
method="eth_getUncleByBlockHashAndIndex"
13+
/>
Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
11
---
22
title: "eth_getUncleCountByBlockHash"
3+
hide_title: true
4+
hide_table_of_contents: true
35
---
46

5-
import Tabs from "@theme/Tabs"
6-
import TabItem from "@theme/TabItem"
7+
import ParserOpenRPC from "@site/src/components/ParserOpenRPC"
8+
import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc"
79

8-
import Description from "/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx"
9-
10-
<Description />
11-
12-
## Parameters
13-
14-
import Params from "/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx"
15-
16-
<Params />
17-
18-
## Returns
19-
20-
import Returns from "/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx"
21-
22-
<Returns />
23-
24-
## Example
25-
26-
import Example from "/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx"
27-
28-
<Example />
29-
30-
### Request
31-
32-
import Request from "./_eth_getunclecountbyblockhash-request.mdx"
33-
34-
<Request />
35-
36-
### Response
37-
38-
import Response from "/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx"
39-
40-
<Response />
10+
<ParserOpenRPC
11+
network={NETWORK_NAMES.linea}
12+
method="eth_getUncleCountByBlockHash"
13+
/>
Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
11
---
22
title: "eth_getUncleCountByBlockNumber"
3+
hide_title: true
4+
hide_table_of_contents: true
35
---
46

5-
import Tabs from '@theme/Tabs';
6-
import TabItem from '@theme/TabItem';
7+
import ParserOpenRPC from "@site/src/components/ParserOpenRPC"
8+
import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc"
79

8-
import Description from "/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx";
9-
10-
<Description />
11-
12-
## Parameters
13-
14-
import Params from "./_eth_block-parameter.mdx";
15-
16-
<Params />
17-
18-
## Returns
19-
20-
import Returns from "/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx";
21-
22-
<Returns />
23-
24-
## Example
25-
26-
import Example from "/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx";
27-
28-
<Example />
29-
30-
### Request
31-
32-
import Request from "./_eth_getunclecountbyblocknumber-request.mdx";
33-
34-
<Request />
35-
36-
### Response
37-
38-
import Response from "/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx";
39-
40-
<Response />
10+
<ParserOpenRPC
11+
network={NETWORK_NAMES.linea}
12+
method="eth_getUncleCountByBlockNumber"
13+
/>
Lines changed: 8 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,13 @@
11
---
22
title: "linea_getTransactionExclusionStatusV1"
3+
hide_title: true
4+
hide_table_of_contents: true
35
---
46

5-
import Tabs from '@theme/Tabs';
6-
import TabItem from '@theme/TabItem';
7+
import ParserOpenRPC from "@site/src/components/ParserOpenRPC"
8+
import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc"
79

8-
Checks if a transaction was rejected for exceeding data line limits, preventing the prover from generating
9-
a proof to be included in a block.
10-
11-
:::warning
12-
13-
You can only check for rejected transactions within seven days of the transaction attempt. Querying
14-
transactions older than this returns a `null` response.
15-
16-
:::
17-
18-
The API call provides the rejection reason if the transaction fails.
19-
It returns `null` if the transaction succeeds.
20-
21-
## Parameters
22-
23-
`transaction hash`: _\[Required]_ A string representing the hash (32 bytes) of a transaction.
24-
25-
## Returns
26-
27-
- `txHash`: The hash of the transaction.
28-
- `from`: The address of the sender.
29-
- `nonce`: Number of transactions made by the sender.
30-
- `txRejectionStage`: The point at which the transaction was rejected. One of:
31-
- `SEQUENCER`: Rejected by the sequencer.
32-
- `RPC`: Rejected by an RPC node.
33-
- `P2P`: Rejected by a P2P-connected node.
34-
- `reasonMessage`: The reason the transaction was rejected.
35-
- `blockNumber`: The block that the transaction was rejected from, in hexadecimal format.
36-
Only returned for transactions rejected by the sequencer.
37-
- `timestamp`: Time of rejection, in ISO 8601 format.
38-
39-
## Example
40-
41-
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
42-
43-
### Request
44-
45-
<Tabs>
46-
<TabItem value="curl">
47-
48-
```bash
49-
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
50-
-X POST \
51-
-H "Content-Type: application/json" \
52-
-d '{"jsonrpc": "2.0", "id": "1", "method": "linea_getTransactionExclusionStatusV1", "params": ["0x526e56101cf39c1e717cef9cedf6fdddb42684711abda35bae51136dbb350ad7"]}'
53-
```
54-
</TabItem>
55-
<TabItem value="WSS">
56-
57-
```bash
58-
wscat -c wss://linea-mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "linea_getTransactionExclusionStatusV1", "params": ["0x526e56101cf39c1e717cef9cedf6fdddb42684711abda35bae51136dbb350ad7"], "id": 1}'
59-
```
60-
61-
</TabItem>
62-
</Tabs>
63-
64-
### Response
65-
66-
<Tabs>
67-
<TabItem value="JSON">
68-
```json
69-
{
70-
"jsonrpc": "2.0",
71-
"id": "1",
72-
"result": {
73-
"txHash": "0x526e56101cf39c1e717cef9cedf6fdddb42684711abda35bae51136dbb350ad7",
74-
"from": "0x4d144d7b9c96b26361d6ac74dd1d8267edca4fc2",
75-
"nonce": "0x64",
76-
"txRejectionStage": "SEQUENCER",
77-
"reasonMessage": "Transaction line count for module ADD=402 is above the limit 70",
78-
"blockNumber": "0x3039",
79-
"timestamp": "2024-08-22T09:18:51Z"
80-
}
81-
}
82-
```
83-
</TabItem>
84-
</Tabs>
85-
86-
The API returns a `null` result if the transaction does not exceed line limits or is older than seven days.
87-
In these cases, the database does not contain the transaction. For example:
88-
89-
```json
90-
{
91-
"jsonrpc": "2.0",
92-
"id": 1,
93-
"result": null
94-
}
95-
```
10+
<ParserOpenRPC
11+
network={NETWORK_NAMES.linea}
12+
method="linea_getTransactionExclusionStatusV1"
13+
/>
Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
11
---
22
title: "net_version"
3+
hide_title: true
4+
hide_table_of_contents: true
35
---
46

5-
import Tabs from "@theme/Tabs"
6-
import TabItem from "@theme/TabItem"
7+
import ParserOpenRPC from "@site/src/components/ParserOpenRPC"
8+
import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc"
79

8-
import Description from "/services/reference/_partials/_net_version-description.mdx"
9-
10-
<Description />
11-
12-
## Parameters
13-
14-
import Params from "/services/reference/_partials/_net_version-parameters.mdx"
15-
16-
<Params />
17-
18-
## Returns
19-
20-
import Returns from "/services/reference/_partials/_net_version-returns.mdx"
21-
22-
<Returns />
23-
24-
## Example
25-
26-
import Example from "/services/reference/_partials/_net_version-example.mdx"
27-
28-
<Example />
29-
30-
### Request
31-
32-
import Request from "./_net_version-request.mdx"
33-
34-
<Request />
35-
36-
### Response
37-
38-
import Response from "/services/reference/_partials/_net_version-response.mdx"
39-
40-
<Response />
10+
<ParserOpenRPC
11+
network={NETWORK_NAMES.linea}
12+
method="net_version"
13+
/>

0 commit comments

Comments
 (0)