Skip to content

Commit

Permalink
apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
joaniekube committed Jun 20, 2024
1 parent f324eb2 commit 285379c
Show file tree
Hide file tree
Showing 33 changed files with 94 additions and 109 deletions.
8 changes: 4 additions & 4 deletions services/concepts/archive-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ The following methods include a parameter for specifying a block number for the

### Rate limits

Infura applies [rate limits](../how-to/avoid-rate-limiting.md#infura-rate-limiting) to ensure network efficiency.
Infura applies [rate limits](../how-to/avoid-rate-limiting.md) to ensure network efficiency.

Requests for Ethereum archive data are more expensive and are therefore subject to different rate limits.

**Free plan**

- 25,000 archive requests per day**.**
- 25,000 archive requests per day.
- 100,000 total requests per day.

Rate limits kick in on archive requests after 25,000 per day. 75,000 standard requests are still available after this point.
Expand All @@ -63,7 +63,7 @@ If you need more archive requests, upgrade to the developer plan.

**Developer plan**

- 100,000 archive requests per day**.**
- 100,000 archive requests per day.
- 200,000 total requests per day.

Rate limits kick in on archive requests after 100,000 per day. 100,000 standard requests are still available after this point.
Expand All @@ -76,4 +76,4 @@ If you need more archive requests, upgrade to the growth plan.

#### Custom, team, and growth plans

No change. Same as a standard request
No change. Same as a standard request.
2 changes: 1 addition & 1 deletion services/concepts/curl.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ It requests the latest block number using the method `eth_blockNumber`.

Let's step through each line of the code snippet to understand what's happening.

The first line uses the `curl` command to send a request to the URL `https://mainnet.infura.io/v3/`YOUR-API-KEY.
The first line uses the `curl` command to send a request to the URL `https://mainnet.infura.io/v3/YOUR-API-KEY`.

#### curl command

Expand Down
55 changes: 28 additions & 27 deletions services/get-started/endpoints.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
description: Infura API endpoints
sidebar_position: 2
toc_max_heading_level: 3
---

# All endpoints
Expand All @@ -9,7 +10,7 @@ The following lists all the network endpoints supported by Infura.

Ensure that you replace `<API-KEY>` with an API key from your [Infura dashboard](../../../developer-tools/dashboard/).

### Arbitrum
## Arbitrum

| Network | Description | URL |
|-------------------|-------------------------|----------------------------------------------------|
Expand All @@ -18,7 +19,7 @@ Ensure that you replace `<API-KEY>` with an API key from your [Infura dashboard]
| Testnet (Sepolia) | JSON-RPC over HTTPS | `https://arbitrum-sepolia.infura.io/v3/<API-KEY>` |
| Testnet (Sepolia) | JSON-RPC over WebSocket | `wss://arbitrum-sepolia.infura.io/ws/v3/<API-KEY>` |

### Avalanche (C-Chain)
## Avalanche (C-Chain)

| Network | Description | URL |
|----------------|-------------------------|----------------------------------------------------|
Expand All @@ -27,7 +28,7 @@ Ensure that you replace `<API-KEY>` with an API key from your [Infura dashboard]
| Testnet (Fuji) | JSON-RPC over HTTPS | `https://avalanche-fuji.infura.io/v3/<API-KEY>` |
| Testnet (Fuji) | JSON-RPC over WebSocket | `wss://avalanche-fuji.infura.io/ws/v3/<API-KEY>` |

### Base
## Base

:::caution Limited access
Base is currently only available to a limited number of customers. If you would like access, please submit a
Expand All @@ -39,21 +40,21 @@ request to `support@infura.io` and we will assess if your request can be accommo
| Mainnet | JSON-RPC over HTTPS | `https://base-mainnet.infura.io/v3/<API-KEY>` |
| Testnet (Sepolia) | JSON-RPC over HTTPS | `https://base-sepolia.infura.io/v3/<API-KEY>` |

### Blast
## Blast

| Network | Description | URL |
|-------------------|---------------------|-----------------------------------------------|
| Mainnet | JSON-RPC over HTTPS | `https://blast-mainnet.infura.io/v3/<API-KEY>` |
| Testnet (Sepolia) | JSON-RPC over HTTPS | `https://blast-sepolia.infura.io/v3/<API-KEY>` |

### Celo
## Celo

| Network | Description | URL |
| ------------------- | ------------------- | ----------------------------------------------- |
| Mainnet | JSON-RPC over HTTPS | `https://celo-mainnet.infura.io/v3/<API-KEY>` |
| Testnet (Alfajores) | JSON-RPC over HTTPS | `https://celo-alfajores.infura.io/v3/<API-KEY>` |

### Ethereum
## Ethereum

:::note
The Holesky testnet is supported through the
Expand All @@ -69,7 +70,7 @@ service and does not currently support WebSockets.
| Sepolia | JSON-RPC over HTTPS | `https://sepolia.infura.io/v3/<API-KEY>` |
| Sepolia | JSON-RPC over WebSocket | `wss://sepolia.infura.io/ws/v3/<API-KEY>` |

### IPFS
## IPFS

:::caution Limited access
Infura is currently limiting IPFS services to customers that already have an active IPFS key.
Expand All @@ -82,11 +83,11 @@ New IPFS key creation is disabled for new and existing customers.

:::info

Include your authentication details when [making IPFS requests](../network-apis/ipfs/quickstart.md)
Include your authentication details when [making IPFS requests](/reference/ipfs/quickstart.md).

:::

### Linea
## Linea

:::caution deprecation notice

Expand All @@ -103,14 +104,14 @@ Sepolia instead.
| Testnet (Sepolia) | JSON-RPC over HTTPS | `https://linea-sepolia.infura.io/v3/<API-KEY>` |
| Testnet (Sepolia) | JSON-RPC over WebSocket | `wss://linea-sepolia.infura.io/ws/v3/<API-KEY>` |

### Mantle
## Mantle

| Network | Description | URL |
|-------------------|-------------------------|--------------------------------------------------|
| Mainnet | JSON-RPC over HTTPS | `https://mantle-mainnet.infura.io/v3/<API-KEY>` |
| Testnet (Sepolia) | JSON-RPC over HTTPS | `https://mantle-sepolia.infura.io/v3/<API-KEY>` |

### Optimism
## Optimism

| Network | Transport type | URL |
|-------------------|-------------------------|---------------------------------------------------|
Expand All @@ -119,14 +120,14 @@ Sepolia instead.
| Testnet (Sepolia) | JSON-RPC over HTTPS | `https://optimism-sepolia.infura.io/v3/<API-KEY>` |
| Testnet (Sepolia) | JSON-RPC over WebSocket | `wss://optimism-mainnet.infura.io/ws/v3/<API-KEY>` |

### Palm
## Palm

| Network | Description | URL |
| ------- | ------------------- | --------------------------------------------- |
| Mainnet | JSON-RPC over HTTPS | `https://palm-mainnet.infura.io/v3/<API-KEY>` |
| Testnet | JSON-RPC over HTTPS | `https://palm-testnet.infura.io/v3/<API-KEY>` |

### Polygon PoS
## Polygon PoS

| Network | Description | URL |
|------------------|-------------------------|---------------------------------------------------|
Expand All @@ -135,94 +136,94 @@ Sepolia instead.
| Testnet (Amoy) | JSON-RPC over HTTPS | `https://polygon-amoy.infura.io/v3/<API-KEY>` |
| Testnet (Amoy) | JSON-RPC over WebSocket | `wss://polygon-amoy.infura.io/ws/v3/<API-KEY>` |

### StarkNet
## StarkNet

| Network | Description | URL |
|-------------------|---------------------|---------------------------------------------------|
| Mainnet | JSON-RPC over HTTPS | `https://starknet-mainnet.infura.io/v3/<API-KEY>` |
| Testnet (Sepolia) | JSON-RPC over HTTPS | `https://starknet-sepolia.infura.io/v3/<API-KEY>` |


## Supported networks
## Gas API

The Gas REST API supports multiple networks.

Specify the chain ID in your request to interact with the relevant network.

### Arbitrum
#### Arbitrum

| Network | Chain ID |
| ------- | -------- |
| Mainnet | 42161 |
| Nova | 42170 |

### Avalanche (C-Chain)
#### Avalanche (C-Chain)

| Network | Chain ID |
| ------- | -------- |
| Mainnet | 43114 |


### Base
#### Base

| Network | Chain ID |
| ------- | -------- |
| Mainnet | 8453 |

### BNB Chain
#### BNB Chain

| Network | Chain ID |
| --------------- | -------- |
| Mainnet | 56 |
| opBNB (layer 2) | 204 |

### Cronos
#### Cronos

| Network | Chain ID |
| ------- | -------- |
| Mainnet | 25 |

### Ethereum
#### Ethereum

| Network | Chain ID |
| ------- | -------- |
| Mainnet | 1 |
| Goerli | 5 |
| Sepolia | 11155111 |

### Fantom
#### Fantom

| Network | Chain ID |
| ------- | -------- |
| Mainnet | 250 |

### Filecoin
#### Filecoin

| Network | Chain ID |
| ------- | -------- |
| Mainnet | 314 |

### Linea
#### Linea

| Network | Chain ID |
| ------- | -------- |
| Mainnet | 59144 |
| Testnet | 59140 |

### Optimism
#### Optimism

| Network | Chain ID |
| ------- | ----------- |
| Mainnet | 10 |

### Polygon
#### Polygon

| Network | Network ID |
| ------- | ---------- |
| Mainnet | 137 |
| Amoy | 80002 |

### zkSync Era
#### zkSync Era

| Network | Chain ID |
| ------- | -------- |
Expand Down
2 changes: 1 addition & 1 deletion services/get-started/infura.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Use the API key when sending requests. The following examples interact with the

:::

Use a tool such as the [Client Uniform Resource Locator (curl)](../learn/curl.md) or [Postman](https://www.postman.com/downloads/) to make requests. We recommend using Postman if you're a Windows user.
Use a tool such as the [Client Uniform Resource Locator (curl)](../concepts/curl.md) or [Postman](https://www.postman.com/downloads/) to make requests. We recommend using Postman if you're a Windows user.

### 3.1 Get the current block number

Expand Down
48 changes: 25 additions & 23 deletions services/how-to/json-web-token-jwt.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,49 +74,51 @@ Upload the contents of the public key file that you [generated earlier](json-web

1. Go to the **SECURITY** section in your project settings.

![Security settings](../images/security-page.png)
![Security settings](../images/security-page.png)

:::info
:::info

You must implement separate security settings for each project.
You must implement separate security settings for each project.

:::
:::

2. Check the **Require JWT for all requests** box to enforce JWT on all requests. This is optional.

:::info Use allowlists to specify a subset of requests that must use JWTs.
:::info

Use allowlists to specify a subset of requests that must use JWTs.

:::
:::

1. Give the public key a name.
3. Give the public key a name.

2. Paste the public key into the **JWT PUBLIC KEY** input box. It looks something like this:
4. Paste the public key into the **JWT PUBLIC KEY** input box. It looks something like this:

```
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr7VlNytvNFt9wVkjJ8vG
L4F0+id4kS1CpG7UMh1kghrLg9KMb8gauy7Bxk6PRz5Ckv1FnG4FL+Z3Cdzwd6c8
jJlzJxbRTYvNi3elqAyItE3tRl6CatRur49t9nGepgFOrwmPP5We52G5O0BsW6Mx
w/neqQH+Y/bXqs0PG/0ZbpTyr044Lh+p9grSuPIogIGIY5JM4AI+fpdH6hVnA7od
PkinkWhQqAW+F8jngwZK+JCFS1GAeobTZVbvsiHZQGuP/T7hqE8z5Q8HYO4ymnkI
MPH6zSKhSxsQRs/kWU5lXqY67ORC3DIMA+I/AJujLuoqC+YaMP0fO81XjrwXPf2j
4wIDAQAB
-----END PUBLIC KEY-----
```
```
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr7VlNytvNFt9wVkjJ8vG
L4F0+id4kS1CpG7UMh1kghrLg9KMb8gauy7Bxk6PRz5Ckv1FnG4FL+Z3Cdzwd6c8
jJlzJxbRTYvNi3elqAyItE3tRl6CatRur49t9nGepgFOrwmPP5We52G5O0BsW6Mx
w/neqQH+Y/bXqs0PG/0ZbpTyr044Lh+p9grSuPIogIGIY5JM4AI+fpdH6hVnA7od
PkinkWhQqAW+F8jngwZK+JCFS1GAeobTZVbvsiHZQGuP/T7hqE8z5Q8HYO4ymnkI
MPH6zSKhSxsQRs/kWU5lXqY67ORC3DIMA+I/AJujLuoqC+YaMP0fO81XjrwXPf2j
4wIDAQAB
-----END PUBLIC KEY-----
```

5. Click **ADD** to add the key to the settings.

6. The key is added to security settings.

![JWT set up](../images/jwt-set-up.png)
![JWT set up](../images/jwt-set-up.png)

7. The key has a **NAME**, **ID**, **FINGERPRINT**. These are used for creating and verifying JWTs. You'll need the **ID** to [generate the JWT](json-web-token-jwt.md#generate-a-jwt).

:::info
:::info

For key rotation, upload up to three keys for each project.
For key rotation, upload up to three keys for each project.

:::
:::

## Send requests with JWTs

Expand Down
2 changes: 1 addition & 1 deletion services/how-to/trace-transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The ad-hoc tracing API endpoints are:
## Transaction-trace filtering APIs

These API endpoints allow you to filter and search by specific information such as the block, address, or transaction. The endpoints
only use the [`trace`](../reference/ethereum/json-rpc-methods/trace-methods.mdx#trace) diagnostic option. The transaction-trace filtering API endpoints are:
only use the [`trace`](../reference/ethereum/json-rpc-methods/trace-methods/index.md) diagnostic option. The transaction-trace filtering API endpoints are:

- [`trace_block`](../reference/ethereum/json-rpc-methods/trace-methods/trace_block.mdx)
- [`trace_transaction`](../reference/ethereum/json-rpc-methods/trace-methods/trace_transaction.mdx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_position: 4

The updated Infura IPFS service offers:

- A [project dashboard](../../../../dashboard/dashboard-stats.md) with essential statistics.
- A [project dashboard](../../../../../developer-tools/dashboard/how-to/dashboard-stats/) with essential statistics.
- [Pinning](manage-files.md#pin-a-file) and [unpinning](manage-files.md#unpin-a-file) API access.
- Publishing files in the background to the IPFS P2P network, so that content is globally accessible.

Expand Down
4 changes: 2 additions & 2 deletions services/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ include:
* **Failover support for APIs** - Currently available on select networks for customers on Growth or Custom plans; if an Infura API
endpoint becomes unavailable for any reason, requests can be forwarded to a partner to fulfill the request.
This ensures that your application remains up and running, providing uninterrupted service to your users.
* **Archive data querying** - [Access historical state data](../concepts/archive-data.md) at any given
* **Archive data querying** - [Access historical state data](concepts/archive-data.md) at any given
block height. This is an invaluable feature for those who need to perform deep analyses of past transactions, contract
states, or balances. With this feature, developers can build applications that are not only data-rich but also comprehensive.
* **Expansion APIs** -
[Access Infura's multi-chain Gas API](../reference/gas-api/api-reference/index.md). Use the Gas API used by the MetaMask wallet to analyze and
[Access Infura's multi-chain Gas API](reference/gas-api/api-reference/index.md). Use the Gas API used by the MetaMask wallet to analyze and
optimize gas costs on EIP-1559 compatible chains.

<head>
Expand Down
2 changes: 1 addition & 1 deletion services/reference/base/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal
python index.py
```

## Next Steps
## Next steps

Now that you have successfully made a call to the Base network, you can explore more functionalities and APIs provided
by Infura. Here are some suggestions:
Expand Down
2 changes: 1 addition & 1 deletion services/reference/celo/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal
python index.py
```

## Next Steps
## Next steps

Now that you have successfully made a call to the Celo network, you can explore more functionalities and APIs provided
by Infura. Here are some suggestions:
Expand Down
Loading

0 comments on commit 285379c

Please sign in to comment.