Skip to content

Commit

Permalink
Standardize <YOUR-API-KEY> placeholder (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandratran authored Sep 9, 2024
1 parent 9e1ba48 commit 58a0f57
Show file tree
Hide file tree
Showing 623 changed files with 1,183 additions and 1,183 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ To allow a specific Ethereum address, click **ADD** and input it into the **CONT
Test with a method from the list.

```bash
curl https://mainnet.infura.io/v3/<PROJECT_ID> \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-H 'Content-Type: application/json' \
-X POST \
-d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xfe05a3e72235c9f92fd9f2282f41a8154d6d342b", "latest"], "id": 1}'
Expand Down Expand Up @@ -116,7 +116,7 @@ the **USER AGENTS** allowlist.
Test with a simple call from a desktop terminal.

```bash
curl https://mainnet.infura.io/v3/<PROJECT_ID> \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}'
Expand Down Expand Up @@ -214,7 +214,7 @@ This feature provides the following benefits:

## Best practices

- Ensure the `API-KEY-SECRET` is not exposed publicly, and include it in your requests.
- Ensure the API key secret is not exposed publicly, and include it in your requests.
- Use all allowlist options wherever possible.
- Create a new API key for each application. This allows you to allowlist the contract addresses relevant to that application.
- Avoid committing your project keys to a repo by using a package like [dotenv](https://www.npmjs.com/package/dotenv).
Expand Down
8 changes: 4 additions & 4 deletions services/concepts/curl.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Your operating system may include curl, or you may need to [download and install
Many Infura requests take the form:

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'
Expand All @@ -38,17 +38,17 @@ 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

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
```

:::info

Replace `YOUR-API-KEY` with a specific [API key](../../../developer-tools/dashboard/get-started/create-api/).
Replace `<YOUR-API-KEY>` with a specific [API key](../../../developer-tools/dashboard/get-started/create-api/).

:::

Expand Down
10 changes: 5 additions & 5 deletions services/get-started/infura.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Use the API key when sending requests. The following examples interact with the
:::info

- All requests are `POST` requests.
- Replace `YOUR-API-KEY` with your own unique API key.
- Replace `<YOUR-API-KEY>` with your own unique API key.

:::

Expand All @@ -83,7 +83,7 @@ Retrieve the current block number.
<TabItem value="cURL" label="cURL" default>

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'
Expand All @@ -93,7 +93,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="Postman" label="Postman" >

```bash
URL: https://mainnet.infura.io/v3/YOUR-API-KEY
URL: https://mainnet.infura.io/v3/<YOUR-API-KEY>
Request_Type: POST
Body:
{
Expand Down Expand Up @@ -125,7 +125,7 @@ The example code checks the latest balance of the Ethereum Proof of Stake (PoS)
<TabItem value="cURL" label="cURL" default>

```bash
curl https://mainnet.infura.io/v3/API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0x00000000219ab540356cBB839Cbe05303d7705Fa", "latest"], "id": 1}'
Expand All @@ -135,7 +135,7 @@ curl https://mainnet.infura.io/v3/API-KEY \
<TabItem value="Postman" label="Postman" >

```bash
URL: https://mainnet.infura.io/v3/YOUR-PROJECT-ID
URL: https://mainnet.infura.io/v3/<YOUR-API-KEY>
Request_Type: POST
Body:
{
Expand Down
6 changes: 3 additions & 3 deletions services/how-to/enable-api-forwarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ In the code tabs, the `eth_blockNumber` method is used as an example.
<TabItem value="cURL">

```bash
curl https://<network>.infura.io/v3/YOUR-API-KEY \
curl https://<network>.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Enable-Failover: true" \
-d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'
Expand All @@ -51,7 +51,7 @@ const provider = new https.Agent(options)

const web3 = new Web3(
new Web3.providers.HttpProvider(
"https://<network>.infura.io/v3/YOUR-API-KEY",
"https://<network>.infura.io/v3/<YOUR-API-KEY>",
{ agent: provider }
)
)
Expand Down Expand Up @@ -93,7 +93,7 @@ class InfuraJsonRpcProvider extends ethers.providers.JsonRpcProvider {
}

const provider = new InfuraJsonRpcProvider(
"https://<network>.infura.io/v3/YOUR-API-KEY"
"https://<network>.infura.io/v3/<YOUR-API-KEY>"
)

provider.getBlockNumber().then((blockNumber) => {
Expand Down
4 changes: 2 additions & 2 deletions services/how-to/interact-with-erc-20-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The first four bytes of this hash comprise its four-byte signature. Take this fo
<TabItem value="Example CURL" label="Example CURL" default>

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}'
Expand Down Expand Up @@ -102,7 +102,7 @@ The following example uses `eth_getLogs` on the DAI ERC-20 Solidity contract [`0
<TabItem value="Example CURL" label="Example CURL" default>

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getLogs", "id": 1, "params": [{"fromBlock": "0x91F37C", "toBlock": "0x91F37C", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x000000000000000000000000ee25e1ba53c225d250861c8e5a9a3e0fe19c790e", "0x000000000000000000000000dfbaf3e4c7496dad574a1b842bc85b402bdc298d"], "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F"}]}'
Expand Down
2 changes: 1 addition & 1 deletion services/how-to/subscribe-to-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ You need to be aware of the following when sending HTTP RPC requests:
The following WebSocket subscription example fires a notification each time a new header is appended to the chain:

```bash
$ wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY
$ wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY>
> {"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}
```
2 changes: 1 addition & 1 deletion services/reference/_partials/_eth_accounts-example.mdx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_accounts-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}'
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion services/reference/_partials/_eth_blobbasefee-example.mdx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_blobbasefee-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_blobBaseFee", "params": [], "id": 1}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_blobBaseFee", "params": [], "id":1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_blobBaseFee", "params": [], "id":1}'
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion services/reference/_partials/_eth_blocknumber-example.mdx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_blocknumber-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params":[], "id": 1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params":[], "id": 1}'
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion services/reference/_partials/_eth_call-example.mdx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_call-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}'
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion services/reference/_partials/_eth_chainid-example.mdx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_chainid-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}'
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"method": "eth_createAccessList", "params": [{"from": "0xaeA8F8f781326bfE6A7683C2BD48Dd6AA4d3Ba63", "data": "0x608060806080608155"}, "pending"], "id": 1, "jsonrpc": "2.0"}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"method": "eth_createAccessList", "params": [{"from": "0xaeA8F8f781326bfE6A7683C2BD48Dd6AA4d3Ba63", "data": "0x608060806080608155"}, "pending"], "id": 1, "jsonrpc": "2.0"}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"method": "eth_createAccessList", "params": [{"from": "0xaeA8F8f781326bfE6A7683C2BD48Dd6AA4d3Ba63", "data": "0x608060806080608155"}, "pending"], "id": 1, "jsonrpc": "2.0"}'
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion services/reference/_partials/_eth_estimategas-example.mdx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_estimategas-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}'
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion services/reference/_partials/_eth_feehistory-example.mdx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_feehistory-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", []], "id": 1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", []], "id": 1}'
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion services/reference/_partials/_eth_gasprice-example.mdx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_gasprice-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}'
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion services/reference/_partials/_eth_getbalance-example.mdx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_getbalance-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0","method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}'
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
4 changes: 2 additions & 2 deletions services/reference/_partials/_eth_getblockbyhash-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
<TabItem value="cURL">

```bash
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}'
Expand All @@ -15,7 +15,7 @@ curl https://mainnet.infura.io/v3/YOUR-API-KEY \
<TabItem value="WSS">

```bash
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}'
wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}'
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).
Loading

0 comments on commit 58a0f57

Please sign in to comment.