Skip to content

Commit

Permalink
apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
joaniefromtheblock committed Jul 16, 2024
1 parent f63bb06 commit a8f179b
Show file tree
Hide file tree
Showing 47 changed files with 518 additions and 452 deletions.
4 changes: 2 additions & 2 deletions services/get-started/infura.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ Body:
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0x00000000219ab540356cBB839Cbe05303d7705Fa",
"latest"
"0x00000000219ab540356cBB839Cbe05303d7705Fa",
"latest"
],
"id": 1
}
Expand Down
65 changes: 32 additions & 33 deletions services/how-to/make-batch-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,38 +24,37 @@ Example batch request (containing 30 requests plus the batch request itself):
```json
curl --request POST \
--url https://mainnet.infura.io/v3/<API-KEY> \
--header "Content-Type: application/json"
--header "Content-Type: application/json" \
--data '[
{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 2, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 3, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 4, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 5, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 6, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 7, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 8, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 9, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 10, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 11, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 12, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 13, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 14, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 15, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 16, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 17, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 18, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 19, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 20, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 21, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 22, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 23, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 24, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 25, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 26, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 27, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 28, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 29, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 30, "method": "eth_accounts", "params": []}
]'

{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 2, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 3, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 4, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 5, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 6, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 7, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 8, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 9, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 10, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 11, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 12, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 13, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 14, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 15, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 16, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 17, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 18, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 19, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 20, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 21, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 22, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 23, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 24, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 25, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 26, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 27, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 28, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 29, "method": "eth_blockNumber", "params": []},
{"jsonrpc": "2.0", "id": 30, "method": "eth_accounts", "params": []}
]'
```
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import TabItem from "@theme/TabItem"
<TabItem value="JSON">

```js
{
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
14 changes: 7 additions & 7 deletions services/reference/_partials/_eth_getstorageat-response.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ import TabItem from "@theme/TabItem"

## Additional notes

Calculating the correct position depends on the storage to retrieve. Consider the following contract deployed at `0x295a70b2de5e3953354a6a8344e616ed314d7251` by address `0x391694e7e0b0cce554cb130d723a9d27458f9298`,
Calculating the correct position depends on the storage to retrieve. Consider the following contract deployed at `0x295a70b2de5e3953354a6a8344e616ed314d7251` by address `0x391694e7e0b0cce554cb130d723a9d27458f9298`:

```solidity
contract Storage {
uint pos0;
mapping(address => uint) pos1;
uint pos0;
mapping(address => uint) pos1;
function Storage() {
pos0 = 1234;
pos1[msg.sender] = 5678;
}
function Storage() public {
pos0 = 1234;
pos1[msg.sender] = 5678;
}
}
```

Expand Down
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 @@ -165,10 +165,10 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta
url = "https://avalanche-mainnet.infura.io/v3/YOUR-API-KEY"
payload = {
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}
headers = {"content-type": "application/json"}
Expand Down
8 changes: 4 additions & 4 deletions services/reference/base/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta
url = "https://base-sepolia.infura.io/v3/YOUR-API-KEY"
payload = {
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}
headers = {"content-type": "application/json"}
Expand Down
8 changes: 4 additions & 4 deletions services/reference/blast/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ In these examples, you'll use [NPM](https://docs.npmjs.com/downloading-and-insta
url = "https://blast-mainnet.infura.io/v3/YOUR-API-KEY"
payload = {
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}
headers = {"content-type": "application/json"}
Expand Down
8 changes: 4 additions & 4 deletions services/reference/celo/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta
url = "https://celo-mainnet.infura.io/v3/YOUR-API-KEY"
payload = {
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}
headers = {"content-type": "application/json"}
Expand Down
4 changes: 2 additions & 2 deletions services/reference/ethereum/json-rpc-methods/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Example error response:
"id": 1337
"jsonrpc": "2.0",
"error": {
"code": -32003,
"message": "Transaction rejected"
"code": -32003,
"message": "Transaction rejected"
}
}
```
Expand Down
8 changes: 4 additions & 4 deletions services/reference/ethereum/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-insta
url = "https://mainnet.infura.io/v3/YOUR-API-KEY"
payload = {
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}
headers = {'content-type': 'application/json'}
Expand Down
8 changes: 4 additions & 4 deletions services/reference/ipfs/http-api-methods/dag_resolve.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ curl "https://ipfs.infura.io:5001/api/v0/dag/resolve?arg=QmZtmD2qt6fJot32nabSP3C

#### REQUEST PARAMS

- `arg` _\[Required]_ - The IPFS object hash; the path to resolve.
- `arg` _[Required]_ - The IPFS object hash; the path to resolve.

### RESPONSE

Expand All @@ -42,10 +42,10 @@ On success, the call to this endpoint will return with 200 and the following bod

```js
{
Cid: {
/: "QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy"
"Cid": {
"/": "QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy"
},
RemPath: ""
"RemPath": ""
}
```

Expand Down
16 changes: 8 additions & 8 deletions services/reference/ipfs/http-api-methods/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ Show IPFS version information.

```bash
curl "https://ipfs.infura.io:5001/api/v0/version?number=<value>&commit=<value>&repo=<value>&all=<value>" \
-X POST \
-u "<API_KEY>:<API_KEY_SECRET>"
-X POST \
-u "<API_KEY>:<API_KEY_SECRET>"
```

</TabItem>
<TabItem value="Example" label="Example" >

```bash
curl "https://ipfs.infura.io:5001/api/v0/version" \
-X POST \
-u "PROJECT_ID:PROJECT_SECRET"
-X POST \
-u "PROJECT_ID:PROJECT_SECRET"
```

</TabItem>
</Tabs>

#### REQUEST PARAMS

- `number` _\[Optional]_ - Only show the version number.
- `commit` _\[Optional]_ - Show the commit hash.
- `repo` _\[Optional] -_ Show repo version.
- `all` _\[Optional]_ - Show all version information.
- `number` _[Optional]_ - Only show the version number.
- `commit` _[Optional]_ - Show the commit hash.
- `repo` _[Optional]_ - Show repo version.
- `all` _[Optional]_ - Show all version information.

### RESPONSE

Expand Down
Loading

0 comments on commit a8f179b

Please sign in to comment.