Skip to content

Commit

Permalink
feat(linea): updated net_ & web3_ reference pages (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrofimovAnton85 authored Oct 25, 2024
1 parent 393a09c commit 3b37407
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 105 deletions.
43 changes: 8 additions & 35 deletions services/reference/linea/json-rpc-methods/net_listening.mdx
Original file line number Diff line number Diff line change
@@ -1,40 +1,13 @@
---
title: "net_listening"
hide_title: true
hide_table_of_contents: true
---

import Tabs from "@theme/Tabs"
import TabItem from "@theme/TabItem"
import ParserOpenRPC from "@site/src/components/ParserOpenRPC"
import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc"

import Description from "/services/reference/_partials/_net_listening-description.mdx"

<Description />

## Parameters

import Params from "/services/reference/_partials/_net_listening-parameters.mdx"

<Params />

## Returns

import Returns from "/services/reference/_partials/_net_listening-returns.mdx"

<Returns />

## Example

import Example from "/services/reference/_partials/_net_listening-example.mdx"

<Example />

### Request

import Request from "./_net_listening-request.mdx"

<Request />

### Response

import Response from "/services/reference/_partials/_net_listening-response.mdx"

<Response />
<ParserOpenRPC
network={NETWORK_NAMES.linea}
method="net_listening"
/>
43 changes: 8 additions & 35 deletions services/reference/linea/json-rpc-methods/net_peercount.mdx
Original file line number Diff line number Diff line change
@@ -1,40 +1,13 @@
---
title: "net_peerCount"
hide_title: true
hide_table_of_contents: true
---

import Tabs from "@theme/Tabs"
import TabItem from "@theme/TabItem"
import ParserOpenRPC from "@site/src/components/ParserOpenRPC"
import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc"

import Description from "/services/reference/_partials/_net_peercount-description.mdx"

<Description />

## Parameters

import Params from "/services/reference/_partials/_net_peercount-parameters.mdx"

<Params />

## Returns

import Returns from "/services/reference/_partials/_net_peercount-returns.mdx"

<Returns />

## Example

import Example from "/services/reference/_partials/_net_peercount-example.mdx"

<Example />

### Request

import Request from "./_net_peercount-request.mdx"

<Request />

### Response

import Response from "/services/reference/_partials/_net_peercount-response.mdx"

<Response />
<ParserOpenRPC
network={NETWORK_NAMES.linea}
method="net_peerCount"
/>
43 changes: 8 additions & 35 deletions services/reference/linea/json-rpc-methods/web3_clientversion.mdx
Original file line number Diff line number Diff line change
@@ -1,40 +1,13 @@
---
title: "web3_clientVersion"
hide_title: true
hide_table_of_contents: true
---

import Tabs from "@theme/Tabs"
import TabItem from "@theme/TabItem"
import ParserOpenRPC from "@site/src/components/ParserOpenRPC"
import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc"

import Description from "/services/reference/_partials/_web3_clientversion-description.mdx"

<Description />

## Parameters

import Params from "/services/reference/_partials/_web3_clientversion-parameters.mdx"

<Params />

## Returns

import Returns from "/services/reference/_partials/_web3_clientversion-returns.mdx"

<Returns />

## Example

import Example from "/services/reference/_partials/_web3_clientversion-example.mdx"

<Example />

### Request

import Request from "./_web3_clientversion-request.mdx"

<Request />

### Response

import Response from "/services/reference/_partials/_web3_clientversion-response.mdx"

<Response />
<ParserOpenRPC
network={NETWORK_NAMES.linea}
method="web3_clientVersion"
/>

0 comments on commit 3b37407

Please sign in to comment.