Skip to content

Commit 58a0f57

Browse files
Standardize <YOUR-API-KEY> placeholder (#1531)
1 parent 9e1ba48 commit 58a0f57

File tree

623 files changed

+1183
-1183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

623 files changed

+1183
-1183
lines changed

developer-tools/dashboard/how-to/secure-an-api/use-an-allowlist.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ To allow a specific Ethereum address, click **ADD** and input it into the **CONT
6565
Test with a method from the list.
6666

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

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

215215
## Best practices
216216

217-
- Ensure the `API-KEY-SECRET` is not exposed publicly, and include it in your requests.
217+
- Ensure the API key secret is not exposed publicly, and include it in your requests.
218218
- Use all allowlist options wherever possible.
219219
- Create a new API key for each application. This allows you to allowlist the contract addresses relevant to that application.
220220
- Avoid committing your project keys to a repo by using a package like [dotenv](https://www.npmjs.com/package/dotenv).

services/concepts/curl.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Your operating system may include curl, or you may need to [download and install
2424
Many Infura requests take the form:
2525

2626
```bash
27-
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
27+
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
2828
-X POST \
2929
-H "Content-Type: application/json" \
3030
-d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'
@@ -38,17 +38,17 @@ It requests the latest block number using the method `eth_blockNumber`.
3838

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

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

4343
#### curl command
4444

4545
```bash
46-
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
46+
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
4747
```
4848

4949
:::info
5050

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

5353
:::
5454

services/get-started/infura.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Use the API key when sending requests. The following examples interact with the
6363
:::info
6464

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

6868
:::
6969

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

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

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

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

137137
```bash
138-
URL: https://mainnet.infura.io/v3/YOUR-PROJECT-ID
138+
URL: https://mainnet.infura.io/v3/<YOUR-API-KEY>
139139
Request_Type: POST
140140
Body:
141141
{

services/how-to/enable-api-forwarding.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In the code tabs, the `eth_blockNumber` method is used as an example.
2828
<TabItem value="cURL">
2929

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

5252
const web3 = new Web3(
5353
new Web3.providers.HttpProvider(
54-
"https://<network>.infura.io/v3/YOUR-API-KEY",
54+
"https://<network>.infura.io/v3/<YOUR-API-KEY>",
5555
{ agent: provider }
5656
)
5757
)
@@ -93,7 +93,7 @@ class InfuraJsonRpcProvider extends ethers.providers.JsonRpcProvider {
9393
}
9494

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

9999
provider.getBlockNumber().then((blockNumber) => {

services/how-to/interact-with-erc-20-tokens.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The first four bytes of this hash comprise its four-byte signature. Take this fo
6464
<TabItem value="Example CURL" label="Example CURL" default>
6565

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

104104
```bash
105-
curl https://mainnet.infura.io/v3/YOUR-API-KEY \
105+
curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
106106
-X POST \
107107
-H "Content-Type: application/json" \
108108
-d '{"jsonrpc": "2.0", "method": "eth_getLogs", "id": 1, "params": [{"fromBlock": "0x91F37C", "toBlock": "0x91F37C", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x000000000000000000000000ee25e1ba53c225d250861c8e5a9a3e0fe19c790e", "0x000000000000000000000000dfbaf3e4c7496dad574a1b842bc85b402bdc298d"], "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F"}]}'

services/how-to/subscribe-to-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ You need to be aware of the following when sending HTTP RPC requests:
2626
The following WebSocket subscription example fires a notification each time a new header is appended to the chain:
2727

2828
```bash
29-
$ wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY
29+
$ wscat -c wss://mainnet.infura.io/ws/v3/<YOUR-API-KEY>
3030
> {"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}
3131
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_accounts-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

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

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_blobbasefee-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

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

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_blocknumber-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

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

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_call-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

1717
```bash
18-
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}'
18+
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}'
1919
```
2020

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_chainid-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

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

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_createaccesslist-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

1717
```bash
18-
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"}'
18+
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"}'
1919
```
2020

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_estimategas-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

1717
```bash
18-
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}'
18+
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}'
1919
```
2020

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_feehistory-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

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

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_gasprice-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

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

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_getbalance-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

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

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

services/reference/_partials/_eth_getblockbyhash-request.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import TabItem from "@theme/TabItem"
55
<TabItem value="cURL">
66

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

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

2121
</TabItem>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
1+
Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://infura.io/dashboard).

0 commit comments

Comments
 (0)