Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jlwllmr authored Dec 17, 2024
2 parents 9a7235c + 519b560 commit 933b896
Show file tree
Hide file tree
Showing 291 changed files with 8,103 additions and 2,664 deletions.
12 changes: 2 additions & 10 deletions README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,14 @@ an inconvenience for users at best, or leave a negative impression of your proje
includes keeping links to external sites up-to-date and returning for updates as your project
matures.

### Contribute to community tutorials

If you've created fleshed-out guides and tutorials, or intend to, we'd love to feature your content
in our [community tutorials section](./docs/developers/guides/community/index.mdx).

First, create an issue describing the content you want to see added or intend to add. If you're
representing an organization (such as a dapp), please use the ecosystem contribution issue form.

### Contribute to the Zero-Knowledge Glossary

Diving into zero-knowledge rollups and getting stumped by the technical jargon? We've started an
open source Zero-Knowledge glossary to define some common terms you might encounter as you dive
into the L2 landscape.

[Fork our repo](https://github.com/Consensys/doc.linea/fork), and add a term in alphabetical
order to `docs/reference/glossary.md`. Then, make a pull request and tag us for review!
order to `docs/zero-knowledge-glossary/index.mdx`. Then, make a pull request and tag us for review!

### Additional resources

Expand Down Expand Up @@ -206,4 +198,4 @@ As outlined above, you can adjust the display size of the svg by changing the cl
### Social cards

A social card for any new article(s) will be generated and applied when the site builds, so there
is no need to manually create or add one.
is no need to manually create or add one.
20 changes: 10 additions & 10 deletions docs/developers/guides/linea-api.mdx → docs/api/index.mdx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
title: Use the Linea API
description: How to make calls to the Linea blockchain using the Linea JSON-RPC APIs
sidebar_position: 6
image: /img/socialCards/use-the-linea-api.jpg
---

import DocCardList from "@theme/DocCardList";
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Linea supports the standard Ethereum JSON-RPC API methods, meaning the developer experience is
identical to building on Ethereum itself. However, some
[Linea-specific methods, and method implementations](../reference/api/index.mdx) differ to Ethereum.
identical to building on Ethereum itself. However, some methods differ to Ethereum — find them in
the [reference section](./reference/eth-sendrawtransaction.mdx).

:::info
View the full list of Linea methods in the
Expand All @@ -20,13 +20,13 @@ View the full list of Linea methods in the
You must connect to an RPC endpoint when making calls to the Linea blockchain. Use one or more of the
following options:

- **Run your own node**: Either [run your own node by setting it up yourself](./run-a-node/index.mdx), or
[use a node provider](../tooling/node-providers/index.mdx#run-your-own-node).
We recommend running [Linea Besu](./run-a-node/linea-besu.mdx) if you want to run a node yourself and interact with the
- **Run your own node**: Either [run your own node by setting it up yourself](../get-started/how-to/run-a-node/index.mdx), or
[use a node provider](../get-started/tooling/node-providers/index.mdx).
We recommend running [Linea Besu](../get-started/how-to/run-a-node/linea-besu.mdx) if you want to run a node yourself and interact with the
blockchain.
- **Connect to a private RPC endpoint**: [Connect to a blockchain infrastructure provider](../tooling/node-providers/index.mdx#private-rpc-endpoints)
- **Connect to a private RPC endpoint**: [Connect to a blockchain infrastructure provider](../get-started/tooling/node-providers/index.mdx#private-rpc-endpoints)
such as Infura or Alchemy. Multiple providers offer free tier access.
- **Use a public endpoint**: [Public endpoints](../tooling/node-providers/index.mdx#public-rpc-endpoints) are
- **Use a public endpoint**: [Public endpoints](../get-started/tooling/node-providers/index.mdx#public-rpc-endpoints) are
free to use but are rate limited and not suitable for production environments.

## Make calls
Expand All @@ -37,11 +37,11 @@ the endpoint with whichever endpoint you prefer.
In the examples, replace `<YOUR-API-KEY>` with your actual Infura API key.

:::info
View the [list of node providers](../tooling/node-providers/index.mdx) if you require an endpoint.
View the [list of node providers](../get-started/tooling/node-providers/index.mdx) if you require an endpoint.
:::


### cURL
### curl

Run the [`curl`](https://curl.se/) command in a terminal:

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ On Linea, each transaction is represented by a sequence of lines representing th
happening at the EVM level. These lines are grouped by modules and are used as inputs to the prover.
In order to limit the resources required to generate proofs, limits are enforced on the maximum
number of lines each module can have. Hence, when a transaction is considered for inclusion in a
block, a [line count check is performed to ensure it conforms to the requirements](../../../architecture/stack/trace-expansion-proving/prover-limits.mdx).
block, a [line count check is performed to ensure it conforms to the requirements](../../get-started/concepts/prover/prover-limits.mdx).

## Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Generates and returns an estimate of how much gas is necessary to allow the tran
and be published on Ethereum. The transaction will not be added to the blockchain.

For more information about estimating gas, and how this API formulates the transaction costs, see
the [Estimate transaction costs](../../guides/gas-fees.mdx) topic.
the [Estimate transaction costs](../../get-started/how-to/gas-fees.mdx) topic.

The `priorityFeePerGas` returned by this method includes the cost of submitting the transaction to
Ethereum, which can vary based on the size of the calldata.
Expand Down Expand Up @@ -63,7 +63,7 @@ You can also call the API using [Infura's supported Linea endpoints](https://doc
### Request

<Tabs>
<TabItem value="cURL">
<TabItem value="curl">

```bash
curl https://linea-mainnet.infura.io/v3/YOUR-API-KEY \
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ returned for transactions rejected by the sequencer.
### Request

<Tabs>
<TabItem value="cURL">
<TabItem value="curl">
```bash
curl https://linea-mainnet.infura.io/v3/YOUR-API-KEY \
-X POST \
Expand Down
8 changes: 0 additions & 8 deletions docs/architecture/overview/index.mdx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/architecture/stack/bridges/index.mdx

This file was deleted.

67 changes: 0 additions & 67 deletions docs/architecture/stack/canonical-msg-service/index.mdx

This file was deleted.

14 changes: 0 additions & 14 deletions docs/developers/guides/community/index.mdx

This file was deleted.

20 changes: 0 additions & 20 deletions docs/developers/guides/linea-safe.mdx

This file was deleted.

41 changes: 0 additions & 41 deletions docs/developers/guides/run-a-node/index.mdx

This file was deleted.

23 changes: 0 additions & 23 deletions docs/developers/quickstart/index.mdx

This file was deleted.

Loading

0 comments on commit 933b896

Please sign in to comment.