Skip to content

Commit

Permalink
feat(ref): act-1562 - updated eth_hashrate & eth_mining ref pages (#1679
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TrofimovAnton85 authored Oct 28, 2024
1 parent 6f37eae commit 8a97a35
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 70 deletions.
43 changes: 8 additions & 35 deletions services/reference/linea/json-rpc-methods/eth_hashrate.mdx
Original file line number Diff line number Diff line change
@@ -1,40 +1,13 @@
---
title: "eth_hashrate"
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/_eth_hashrate-description.mdx"

<Description />

## Parameters

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

<Params />

## Returns

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

<Returns />

## Example

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

<Example />

### Request

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

<Request />

### Response

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

<Response />
<ParserOpenRPC
network={NETWORK_NAMES.linea}
method="eth_hashrate"
/>
43 changes: 8 additions & 35 deletions services/reference/linea/json-rpc-methods/eth_mining.mdx
Original file line number Diff line number Diff line change
@@ -1,40 +1,13 @@
---
title: "eth_mining"
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/_eth_mining-description.mdx"

<Description />

## Parameters

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

<Params />

## Returns

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

<Returns />

## Example

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

<Example />

### Request

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

<Request />

### Response

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

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

0 comments on commit 8a97a35

Please sign in to comment.