Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion developer-tools/dashboard/get-started/create-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To create an API key:
1. From the pop-up window, provide a name, then click **CREATE**.
1. Select the networks that you want your API key to access, and select **Save Changes**.

You can [configure additional security](./secure-an-api/) for your API key by requiring an API key secret or JWTs with
You can [configure additional security](../how-to/secure-an-api/api-key-secret.md) for your API key by requiring an API key secret or JWTs with
each API request.

## Best practices for configuring API key endpoints
Expand Down
5 changes: 5 additions & 0 deletions docs/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ The latest major MetaMask documentation updates are listed by the month they wer
For a comprehensive list of recent product changes, visit the "Release Notes" section at the bottom
of the [MetaMask developer page](https://metamask.io/developer/).

## July 2024

- Documented support for the [ZKsync Era network API service](/services/reference/zksync). ([#1372](https://github.com/MetaMask/metamask-docs/pull/1372))
- Added [Services](/services) and [Developer tools](/developer-tools) to MetaMask documentation. ([#1325](https://github.com/MetaMask/metamask-docs/pull/1325))

## June 2024

- Updated [React dapp with global state tutorial](/wallet/tutorials/react-dapp-global-state) with
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@
"$root$": false
}
}
}
}
8 changes: 7 additions & 1 deletion services/get-started/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ Sepolia instead.
| 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>` |

## ZKsync Era

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

## Gas API

Expand Down Expand Up @@ -223,7 +229,7 @@ Specify the chain ID in your request to interact with the relevant network.
| Mainnet | 137 |
| Amoy | 80002 |

#### zkSync Era
#### ZKsync Era

| Network | Chain ID |
| ------- | -------- |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- `result`: A trace object that includes the [`trace`](../../reference/ethereum/json-rpc-methods/trace-methods/index.md#trace) and [`stateDiff`](../../ethereum/json-rpc-methods/trace-methods/index.md#statediff).
- `result`: A trace object that includes the [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) and [`stateDiff`](../../ethereum/json-rpc-methods/trace-methods/index.md#statediff).

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- `block parameter`: _[Required]_ The hexadecimal block number, or the string `latest`, `earliest`, or `pending`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block).
- `options`: A list of tracing options. Tracing options are [`trace`](./#trace) and [`stateDiff`](./#statediff). Specify both options or none.
- `options`: A list of tracing options. Tracing options are [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) and [`stateDiff`](../../ethereum/json-rpc-methods/trace-methods/index.md#statediff). Specify both options or none.

2 changes: 1 addition & 1 deletion services/reference/arbitrum/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ No personal information is sent as part of partner requests, only information ne

For any parameters required in an RPC request, these could be the type that describe the method, addresses, gas, and session.

Liquify (Privacy Policy) is Infura's failover-protection partner and currently offer failover support for all Infura's Arbitrum methods.
Liquify ([Privacy Policy](https://www.liquify.com/Liquify_RPC_PP.pdf)) is Infura's failover-protection partner and currently offer failover support for all Infura's Arbitrum methods.
4 changes: 2 additions & 2 deletions services/reference/arbitrum/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/c

### cURL

Run the following command in your terminal. Replace `YOUR-API-KEY` with your actual Infura API key.
Run the following command in your terminal, replacing `YOUR-API-KEY` with your actual Infura API key:

```bash
curl https://arbitrum-mainnet.infura.io/v3/YOUR-API-KEY \
Expand Down Expand Up @@ -115,7 +115,7 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta

#### Ethers

1. In your project folder, install the ethers package using npm:
1. In your project folder, install the `ethers` package using npm:

```bash
npm install ethers
Expand Down
2 changes: 1 addition & 1 deletion services/reference/avalanche-c-chain/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ No personal information is sent as part of partner requests, only information ne

For any parameters required in an RPC request, these could be the type that describe the method, addresses, gas, and session.

Liquify (Privacy Policy) is Infura's failover-protection partner and currently offer failover support for all Infura's Avalanche (C-Chain) methods.
Liquify ([Privacy Policy](https://www.liquify.com/Liquify_RPC_PP.pdf)) is Infura's failover-protection partner and currently offer failover support for all Infura's Avalanche (C-Chain) methods.
8 changes: 4 additions & 4 deletions services/reference/avalanche-c-chain/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/c

### cURL

Run the following command in your terminal. Replace `YOUR-API-KEY` with your actual Infura API key.
Run the following command in your terminal, replacing `YOUR-API-KEY` with your actual Infura API key:

```bash
curl https://avalanche-mainnet.infura.io/v3/YOUR-API-KEY \
Expand Down Expand Up @@ -86,7 +86,7 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta
npm i axios
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -115,13 +115,13 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta

#### Ethers

1. In your project folder, install the ethers package using npm:
1. In your project folder, install the `ethers` package using npm:

```bash
npm install ethers
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down
12 changes: 6 additions & 6 deletions services/reference/base/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/c

### cURL

Run the following command in your terminal. Replace `YOUR-API-KEY` with your actual Infura API key.
Run the following command in your terminal, replacing `YOUR-API-KEY` with your actual Infura API key:

```bash
curl https://base-sepolia.infura.io/v3/YOUR-API-KEY \
Expand All @@ -36,13 +36,13 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal

#### Node Fetch

1. In your project folder, install the Node Fetch package using npm:
1. In your project folder, install the `node-fetch` package using npm:

```bash
npm i node-fetch
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -86,7 +86,7 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal
npm i axios
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -115,13 +115,13 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal

#### Ethers

1. In your project folder, install the ethers package using npm:
1. In your project folder, install the `ethers` package using npm:

```bash
npm install ethers
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down
4 changes: 2 additions & 2 deletions services/reference/blast/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/c

### cURL

Run the following command in your terminal. Replace `YOUR-API-KEY` with your actual Infura API key.
Run the following command in your terminal, replacing `YOUR-API-KEY` with your actual Infura API key:

```bash
curl https://blast-mainnet.infura.io/v3/YOUR-API-KEY \
Expand All @@ -36,7 +36,7 @@ In these examples, you'll use [NPM](https://docs.npmjs.com/downloading-and-insta

#### Node Fetch

1. In your project folder, install the Node Fetch package using `npm`:
1. In your project folder, install the `node-fetch` package using `npm`:

```bash
npm i node-fetch
Expand Down
12 changes: 6 additions & 6 deletions services/reference/celo/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/c

### cURL

Run the following command in your terminal. Replace `YOUR-API-KEY` with your actual Infura API key.
Run the following command in your terminal, replacing `YOUR-API-KEY` with your actual Infura API key:

```bash
curl https://celo-mainnet.infura.io/v3/YOUR-API-KEY \
Expand All @@ -36,13 +36,13 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal

#### Node Fetch

1. In your project folder, install the Node Fetch package using npm:
1. In your project folder, install the `node-fetch` package using npm:

```bash
npm i node-fetch
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -86,7 +86,7 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal
npm i axios
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -115,13 +115,13 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal

#### Ethers

1. In your project folder, install the ethers package using npm:
1. In your project folder, install the `ethers` package using npm:

```bash
npm install ethers
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down
12 changes: 6 additions & 6 deletions services/reference/ethereum/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/c

### cURL

Run the following command in your terminal. Replace `YOUR-API-KEY` with your actual Infura API key.
Run the following command in your terminal, replacing `YOUR-API-KEY` with your actual Infura API key:

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
Expand Down Expand Up @@ -63,7 +63,7 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta
npm i node-fetch
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -107,7 +107,7 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta
npm i axios
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -136,13 +136,13 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta

#### Ethers

1. In your project folder, install the ethers package using npm:
1. In your project folder, install the `ethers` package using npm:

```bash
npm install ethers
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -170,7 +170,7 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta

1. In your project folder, [install the latest version of the web3.js library](https://www.npmjs.com/package/web3?activeTab=versions)

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down
12 changes: 6 additions & 6 deletions services/reference/linea/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/c

### cURL

Run the following command in your terminal. Replace `YOUR-API-KEY` with your actual Infura API key.
Run the following command in your terminal, replacing `YOUR-API-KEY` with your actual Infura API key:

```bash
curl https://linea-mainnet.infura.io/v3/YOUR-API-KEY \
Expand All @@ -42,7 +42,7 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta
npm i node-fetch
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -86,7 +86,7 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta
npm i axios
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -115,13 +115,13 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta

#### Ethers

1. In your project folder, install the ethers package using npm:
1. In your project folder, install the `ethers` package using npm:

```bash
npm install ethers
``````

1. Create your Javascript file and copy the following code:
1. Create your JavaScript file and copy the following code:

Replace `YOUR-API-KEY` with your actual Infura API key.

Expand Down Expand Up @@ -191,7 +191,7 @@ by Infura. Here are some suggestions:
- **Explore other Linea APIs**: Infura supports a wide range of APIs. You can find more information in the
[JSON-RPC API method documentation](json-rpc-methods/index.md).

- **Try out different networks**: Infura supports multiple networks including Arbitrum, Polygon, Optimism, IPFS and more.
- **Try out different networks**: Infura supports multiple networks including Arbitrum, Polygon, Optimism, IPFS, and more.

- **Monitor your usage**: Keep an eye on your usage on the [Infura dashboard](../../../../developer-tools/dashboard/how-to/dashboard-stats/) to ensure you're not hitting your rate limits.

Expand Down
2 changes: 1 addition & 1 deletion services/reference/mantle/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Ensure you have an [API key](../../../../developer-tools/dashboard/get-started/c

### cURL

Run the following command in your terminal. Replace `YOUR-API-KEY` with your actual Infura API key.
Run the following command in your terminal, replacing `YOUR-API-KEY` with your actual Infura API key:

```bash
curl https://mantle-mainnet.infura.io/v3/YOUR-API-KEY \
Expand Down
2 changes: 1 addition & 1 deletion services/reference/optimism/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ No personal information is sent as part of partner requests, only information ne

For any parameters required in an RPC request, these could be the type that describe the method, addresses, gas, and session.

Bware Labs (Terms of Service, Privacy Policy) is Infura's failover-protection partner. While Bware Labs supports most Infura methods, it does not yet support the following methods:
Bware Labs ([Terms of Service](https://bwarelabs.com/terms), [Privacy Policy](https://bwarelabs.com/privacy)) is Infura's failover-protection partner. While Bware Labs supports most Infura methods, it does not yet support the following methods:

- `eth_accounts`
- `eth_coinbase`
Expand Down
Loading