Skip to content

Commit

Permalink
Merge branch 'main' into ACT-1496-projects-box-ui-update
Browse files Browse the repository at this point in the history
  • Loading branch information
aednikanov committed Sep 27, 2024
2 parents f67e665 + b1b4766 commit bb56687
Show file tree
Hide file tree
Showing 103 changed files with 756 additions and 351 deletions.
2 changes: 1 addition & 1 deletion developer-tools/dashboard/how-to/credit-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: View your Infura credit usage stats.

:::info

The [credit pricing model](../api/learn/pricing/) replaces request-based billing for free-tier (Core)
The [credit pricing model](/services/get-started/pricing) replaces request-based billing for free-tier (Core)
customers. Customers on Developer and Team plans will be transitioned to the credit model on
September 30, 2024.

Expand Down
6 changes: 6 additions & 0 deletions docs/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ of the [MetaMask developer page](https://metamask.io/developer/).

## September 2024

- Updated [credit cost](/services/get-started/pricing/credit-cost/#ethereum) for `eth_sendRawTransaction`.
([#1581](https://github.com/MetaMask/metamask-docs/pull/1581))
- Documented WebSocket support for [Base](/services/reference/base),
[Blast](/services/reference/blast), [Celo](/services/reference/celo),
[Ethereum Holesky](/services/reference/ethereum), and [Mantle](/services/reference/mantle).
([#1552](https://github.com/MetaMask/metamask-docs/pull/1552))
- Documented new [Snaps custom UI JSX components](/snaps/features/custom-ui) for Flask
version 12.4, and removed documentation for deprecated function-based library.
([#1540](https://github.com/MetaMask/metamask-docs/pull/1540))
Expand Down
139 changes: 64 additions & 75 deletions services/get-started/endpoints.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion services/get-started/pricing/credit-cost.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ a specific network, then use the default Ethereum method's credit cost.
| `eth_maxPriorityFeePerGas` | 80 |
| `eth_mining` | 5 |
| `eth_protocolVersion` | 5 |
| `eth_sendRawTransaction` | 720 |
| `eth_sendRawTransaction` | 80 |
| `eth_sign` | 80 |
| `eth_submitWork` | 80 |
| `eth_subscribe` | 5 |
Expand Down
6 changes: 3 additions & 3 deletions services/how-to/javascript-dotenv.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ You can create a `package.json` file by running a CLI questionnaire, or by creat
At the root of your project directory, create a file named `.env` containing environment variables for sensitive information that shouldn't be shared, such as an Infura API key, Ethereum private key, or MetaMask secret recovery phrase:

```bash
INFURA_API_KEY = "https://goerli.infura.io/v3/<Your-API-Key>"
PRIVATE_KEY = "<Your-private-key>"
INFURA_API_KEY = "<YOUR-API-KEY>"
PRIVATE_KEY = "<YOUR-PRIVATE-KEY>"
```

:::danger
Expand All @@ -55,7 +55,7 @@ Give your project access to the `.env` information by including the following li
require("dotenv").config()
```

Access the environment variables using `process.env.<Your-Environment-Variable-Name>`. For example, the following is a `hardhat.config.js` file for a Hardhat project:
Access the environment variables using `process.env.<YOUR-ENV-VAR-NAME>`. For example, the following is a `hardhat.config.js` file for a Hardhat project:

```javascript
require("@nomiclabs/hardhat-waffle")
Expand Down
6 changes: 3 additions & 3 deletions services/how-to/json-web-token-jwt.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ If JWTs are required for all requests, the following fails with an `invalid JWT`
curl -X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}' \
"https://optimism-sepolia.infura.io/v3/<API-KEY>"
"https://optimism-sepolia.infura.io/v3/<YOUR-API-KEY>"
```

To get the request to pass, generate a JWT, and add it to the request.
Expand Down Expand Up @@ -160,7 +160,7 @@ curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjQyZjUxODRlMzE1ZTQwZDRiNzkzMjU3Nzg2OTEwOTNhIn0.eyJleHAiOjE4OTM0NTI0MDAsImF1ZCI6ImluZnVyYS5pbyJ9.rIBKHmxDsSEiiqEcbWPWkN6F28R95a0beGdnVgVQnnD7ESOKGosr2t9iQ7QyGvNO8-74gaPy_DqVn4sy1FvnullrWQc8Tmf5PrrX2ULiGfSUATvr-JPOga-KAgS6ftcStoACNmcN7QI-n7Gv7NqZC3zWMGzK_1SvYcSodXzoWwtkWmrMW9uPiu4MvROQH0sK7MJ4WHBIHii-x4wogH4PHEdGi_vFZohq2bRaaDKXBeJK7Tkke2whcydTHGuiAPQvRiHu5_wVptgDbTbKIQ28ZFQ4LpYStXE9Bck4JoVDeRQezWJN8Dx9ThU7j1xhWQqxQFWw3SPHry-cIejAWEfDTQ" \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}' \
"https://mainnet.infura.io/v3/<API-KEY>"
"https://mainnet.infura.io/v3/<YOUR-API-KEY>"
```

```bash
Expand Down Expand Up @@ -214,7 +214,7 @@ curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjQyZjUxODRlMzE1ZTQwZDRiNzkzMjU3Nzg2OTEwOTNhIn0.eyJleHAiOjE4OTM0NTI0MDAsImF1ZCI6ImluZnVyYS5pbyIsImFkZHJlc3NlcyI6WyIweDE5MzdjNWM1MTUwNTc1NTNjY2JkNDZkNTg2NjQ1NWNlNjYyOTAyODQiXSwibWV0aG9kcyI6WyJldGhfZ2V0QmFsYW5jZSJdfQ.SwonSCVgybdT_GPQXe5SfhujmyzG-qpgH6zzVEzLZbZpZKsVQzOzFu3X1zHydvITzl3WhKXq5q8acHdMEO8y2TpUeyeLB25A-bnSZj8YlxacQvsnSNzm4ySJrTglmjD9rsr6JzKfgub03RuHuz0AWWO4omD6UrPcfcpxUF9YXEcT98SIsodPP_41WPrRvBuo8kLhmByr2Qs-XQRCDzxHxHb5jXI5RzoxLeEjTU_3GfWqgqgh4XHogcK43_VFGz9gv8QEoUiPnySafV6H80WXo12XwTeF-lr2cy_q79ZOvSp0WC4_j8dQMhNwj2dhZv1VPsViZMeHjBAJwK5mzIxBlQ" \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getBalance", "params": [ "0x1937c5c515057553ccbd46d5866455ce66290284", "latest"]}' \
"https://mainnet.infura.io/v3/<API-KEY>"
"https://mainnet.infura.io/v3/<YOUR-API-KEY>"
```

```bash
Expand Down
2 changes: 1 addition & 1 deletion services/how-to/make-batch-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Example batch request (containing 30 requests plus the batch request itself):

```json
curl --request POST \
--url https://mainnet.infura.io/v3/<API-KEY> \
--url https://mainnet.infura.io/v3/<YOUR-API-KEY> \
--header "Content-Type: application/json" \
--data '[
{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []},
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 @@ -67,7 +67,7 @@ This example represents a call to the `transfer` function of an ERC-20 token con
<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": "trace_transaction", "params": ["0x1e404c4bf580688c5527df2ce5aceb3db5de49479ab7dd321dd4615e4f5a7a5c"], "id": 1}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import TabItem from "@theme/TabItem"

## Error response

On Mainnet and Goerli, if this call causes the EVM to execute a `REVERT` operation, an error response of the following form is returned, with the revert reason pre-decoded as a string:
If this call causes the EVM to execute a `REVERT` operation, an error response of the following form is returned, with the revert reason pre-decoded as a string:

```json
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
Specify one of the following subscription events:

- `newHeads`: Subscribing to this returns a notification each time a new header is appended to the chain, including chain reorganizations. In a chain reorganization, the subscription emits all new headers for the new chain. Therefore the subscription can emit multiple headers at the same height.

- `logs`: Returns logs that are included in new imported blocks and match the given filter criteria. In case of a chain reorganization, previously sent logs that are on the old chain are resent with the removed property set to `true`. Logs from transactions that ended up in the new chain are emitted. Therefore a subscription can emit logs for the same transaction multiple times. This parameter has the following fields:

- `address`: (_optional_) Either an address or an array of addresses. Only logs that are created from these addresses are returned.

- `topics`: (_optional_) Only logs that match these specified topics are returned.

:::tip Infura Recommendation

We strongly recommend specifying a filter (`address` or `topics` or both) when subscribing to the `logs` event.

:::

- `newPendingTransactions`: Returns the hash for all transactions that are added to the pending state and are signed with a key that's available in the node. When a transaction that was previously part of the canonical chain isn't part of the new canonical chain after a reorganization, it's emitted again.
6 changes: 0 additions & 6 deletions services/reference/base/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ import CardList from '@site/src/components/CardList'

Base is an optimistic layer 2 rollup chain built by Coinbase on the MIT-licensed [OP Stack](https://docs.optimism.io/stack/getting-started#the-op-stack-today), in collaboration with [Optimism](../optimism/index.md).

:::caution Limited access
Base is currently only available to a limited number of customers. Production
support is also limited. If you would like access, please submit a request to `[email protected]` and
we will assess if your request can be accommodated at this time.
:::

The Base network provides seamless Coinbase integrations, easy fiat onramps, and access to more than
100 million users and $100 billion in assets in the Coinbase ecosystem.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tabs from "@theme/Tabs"
import TabItem from "@theme/TabItem"
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

<Tabs>
<TabItem value="cURL">
Expand All @@ -12,4 +12,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>

</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

```bash
wscat -c wss://base-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>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import TabItem from "@theme/TabItem"
curl https://base-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}'
-d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

```bash
wscat -c wss://base-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
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import TabItem from "@theme/TabItem"
curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20, 30]], "id": 1}'
-d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import TabItem from "@theme/TabItem"
curl https://base-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}'
-d '{"jsonrpc": "2.0","method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

```bash
wscat -c wss://base-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
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import TabItem from "@theme/TabItem"
curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["0x5BAD55", false], "id": 1}'
-d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55",false], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import TabItem from "@theme/TabItem"
curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics": ["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}'
-d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import TabItem from "@theme/TabItem"
curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getProof", "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"], "id": 1}'
-d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ curl https://base-mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}'
```

</TabItem>
<TabItem value="WSS">

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

</TabItem>
</Tabs>
Loading

0 comments on commit bb56687

Please sign in to comment.