Skip to content

Commit

Permalink
Merge branch 'main' into connect
Browse files Browse the repository at this point in the history
  • Loading branch information
sammysango authored Jan 7, 2025
2 parents bd3ad25 + c82146e commit 625957d
Show file tree
Hide file tree
Showing 9 changed files with 125 additions and 396 deletions.
33 changes: 29 additions & 4 deletions docs/api/reference/linea-estimategas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ fee per gas.

:::tip

You can also call the API using [Infura's supported Linea endpoints](https://docs.infura.io/api/networks/linea/choose-a-network).
You can also call the API using [Infura's supported Linea endpoints](https://docs.metamask.io/services/reference/linea/json-rpc-methods/).

:::

### Request

<Tabs>
<Tabs groupId="sdk-lang">
<TabItem value="curl">

```bash
Expand All @@ -73,7 +74,7 @@ You can also call the API using [Infura's supported Linea endpoints](https://doc
```

</TabItem>
{/* <TabItem value="ethers.js">
<TabItem value="ethers.js">
```javascript
type LineaEstimateGasResponse = {
baseFeePerGas: string;
Expand All @@ -93,7 +94,7 @@ You can also call the API using [Infura's supported Linea endpoints](https://doc
const fees: LineaEstimateGasResponse = await provider.send("linea_estimateGas", [params]);
console.log(fees);
```
</TabItem> */}
</TabItem>
<TabItem value="viem">
```javascript
import { createPublicClient, http, parseEther } from 'viem'
Expand Down Expand Up @@ -125,6 +126,9 @@ You can also call the API using [Infura's supported Linea endpoints](https://doc

### Response

<Tabs groupId="sdk-lang">
<TabItem value="curl">

```JSON
{
"jsonrpc": "2.0",
Expand All @@ -137,6 +141,27 @@ You can also call the API using [Infura's supported Linea endpoints](https://doc
}
```

</TabItem>
<TabItem value="ethers.js">
```javascript
{
baseFeePerGas: "0x7",
gasLimit: "0xcf08",
priorityFeePerGas: "0x43a82a4"
}
```
</TabItem>
<TabItem value="viem">
```javascript
{
baseFeePerGas: 7n,
gasLimit: 53000n,
priorityFeePerGas: 4444716n
}
```
</TabItem>
</Tabs>

Where:
- `baseFeePerGas` - Uses the Linea base fee which is set at 7 wei.
- `gasLimit` - Uses the standard `eth_estimateGas` API calculation.
Expand Down
6 changes: 6 additions & 0 deletions docs/get-started/build/quickstart/deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ This involves:

> _Estimated time to complete: ~20 minutes._
:::note Hardhat

If you'd prefer to deploy your contract using Hardhat rather than Foundry, see our [guide](../../how-to/deploy-smart-contract/hardhat.mdx).

:::

## Prerequisites

A Linea-compatible wallet with some Linea Sepolia ETH. We recommend using [MetaMask](https://metamask.io/).
Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/how-to/connect-wallet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ uses the common EIP-1193 standard. There are a few wallets that also have [separ

Next, head to your app file.

Import the the relevant providers from Wagmi and Tanstack Query, as well as the `QueryClient`
Import the the relevant providers from Wagmi and TanStack Query, as well as the `QueryClient`
function we'll use:

```tsx
Expand Down
38 changes: 24 additions & 14 deletions docs/get-started/tooling/node-providers/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,67 @@ image: /img/socialCards/node-providers.jpg
<table>
<tr>
<th>Provider</th>
<th>Linea feature support*</th>
<th>Linea API methods*</th>
<th>WebSocket</th>
</tr>
<tr>
<td><a href="https://www.alchemy.com/">Alchemy</a></td>
<td>:white_check_mark:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td><a href="https://www.ankr.com/rpc/">ANKR</a></td>
<td>:x:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td><a href="https://blastapi.io/">BLAST API</a></td>
<td>:white_check_mark:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td><a href="https://blockpi.io/">Blockpi</a></td>
<td>:white_check_mark:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td><a href="https://drpc.org/">DRPC</a></td>
<td>:x:</td>
<td>:white_check_mark:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td><a href="https://getblock.io/">GetBlock</a></td>
<td>:white_check_mark:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td><a href="https://www.infura.io/">Infura</a></td>
<td>:white_check_mark:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td><a href="https://moralis.io/nodes/">Moralis</a></td>
<td>:x:</td>
<td>:x:</td>
</tr>
<tr>
<td><a href="https://nownodes.io/nodes">NOWNodes</a></td>
<td>:x:</td>
<td>:x:</td>
</tr>
<tr>
<td><a href="https://www.quicknode.com">QuickNode</a></td>
<td>:x:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td><a href="https://unifra.io/">Unifra</a></td>
<td>:x:</td>
<td>:white_check_mark:</td>
</tr>
</table>

> \* _"Linea feature support" indicates endpoints that support custom features beyond standard
> \* _"Linea API methods" indicates endpoints that support custom features beyond standard
> Ethereum functionality, such as the [`linea_estimateGas`](../../../api/reference/linea-estimategas.mdx)
> API method, or features that require a specific implementation to work on Linea, such as use of
> the [`finalized` tag](../../how-to/finalized-block.mdx)._
Expand Down Expand Up @@ -84,7 +96,8 @@ Public endpoints are rate limited, and not meant for production systems.
<tr>
<th>Mainnet</th>
<th>Testnet</th>
<th>Linea feature support*</th>
<th>Linea API methods*</th>
<th>Websocket</th>
</tr>
<tr>
<td>
Expand All @@ -94,6 +107,7 @@ Public endpoints are rate limited, and not meant for production systems.
<code>https://linea-sepolia.public.blastapi.io</code>
</td>
<td>:white_check_mark:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td>
Expand All @@ -103,6 +117,7 @@ Public endpoints are rate limited, and not meant for production systems.
<code>https://rpc.sepolia.linea.build</code>
</td>
<td>:white_check_mark:</td>
<td>:x:</td>
</tr>
<tr>
<td>
Expand All @@ -112,22 +127,15 @@ Public endpoints are rate limited, and not meant for production systems.
<code>https://linea-sepolia.rpc.thirdweb.com</code>
</td>
<td>:x:</td>
</tr>
<tr>
<td>
<code>https://linea.blockpi.network/v1/rpc/public</code>
</td>
<td>
<code>https://linea-sepolia.blockpi.network/v1/rpc/public</code>
</td>
<td>:white_check_mark:</td>
<td>:x:</td>
</tr>
<tr>
<td>
<code>https://linea-mainnet-public.unifra.io</code>
</td>
<td>N/A</td>
<td>:x:</td>
<td>:x:</td>
</tr>
<tr>
<td>
Expand All @@ -137,6 +145,7 @@ Public endpoints are rate limited, and not meant for production systems.
<code>https://go.getblock.io/ACCESS_TOKEN</code>
</td>
<td>:x:</td>
<td>:white_check_mark:</td>
</tr>
<tr>
<td>
Expand All @@ -146,10 +155,11 @@ Public endpoints are rate limited, and not meant for production systems.
<code>https://site1.moralis-nodes.com/linea-sepolia/API_KEY</code>
</td>
<td>:x:</td>
<td>:x:</td>
</tr>
</table>

> \* _"Linea feature support" indicates endpoints that support custom features beyond standard
> \* _"Linea API methods" indicates endpoints that support custom features beyond standard
> Ethereum functionality, such as the [`linea_estimateGas`](../../../api/reference/linea-estimategas.mdx)
> API method, or features that require a specific implementation to work on Linea, such as use of
> the [`finalized` tag](../../how-to/finalized-block.mdx)._
Expand Down
Loading

0 comments on commit 625957d

Please sign in to comment.