Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
joaniekube committed Jun 20, 2024
1 parent 285379c commit 3a9dd85
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infu

:::tip WebSocket connections only

Subscription methods are available for [WebSocket](../../concepts/websockets.md) connections only.
Subscription methods are available for [WebSocket](../../../concepts/websockets.md) connections only.

:::

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infu

:::tip WebSocket connections only

Subscription methods are available for [WebSocket](../../concepts/websockets.md) connections only.
Subscription methods are available for [WebSocket](../../../concepts/websockets.md) connections only.

:::

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- `result`: A trace object that includes the [`trace`](./#trace) and [`stateDiff`](./#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,2 +1,2 @@
A [`trace`](./#trace) list that matches the supplied filter.
A [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) list that matches the supplied filter.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Provides transaction processing of type [`trace`](./#trace) for the specified transaction. Use this API to improve smart contract performance by analyzing its internal transactions and execution steps. You can use this information to identify bottlenecks and optimize the contract for better performance.
Provides transaction processing of type [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) for the specified transaction. Use this API to improve smart contract performance by analyzing its internal transactions and execution steps. You can use this information to identify bottlenecks and optimize the contract for better performance.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- A list of [traces](./#trace) in the order called by the transaction.
- A list of [traces](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) in the order called by the transaction.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
title: "Filter methods"
---

# Filter Methods
# Filter methods

Infura supports the following filter methods over HTTP. Filter IDs can be shared by any connection using the same API key.
2 changes: 1 addition & 1 deletion services/reference/ethereum/json-rpc-methods/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ implementation.
| -32002 | Resource unavailable | The requested resource is not available. | Non-standard |
| -32003 | Transaction rejected | The transaction could not be created. | Non-standard |
| -32004 | Method not supported | The requested method is not implemented. | Non-standard |
| -32005 | Limit exceeded | The request exceeds your request limit. For more information, refer to [Avoid rate limiting](https://docs.infura.io/api/networks/ethereum/how-to/avoid-rate-limiting). | Non-standard |
| -32005 | Limit exceeded | The request exceeds your request limit. For more information, refer to [Avoid rate limiting](../../../how-to/avoid-rate-limiting). | Non-standard |
| -32006 | JSON-RPC version not supported | The version of the JSON-RPC protocol is not supported. | Non-standard |


Expand Down
6 changes: 3 additions & 3 deletions services/reference/gas-api/api-reference/basefeehistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ Array of historical base fees.

### Request

Include your [API key](https://docs.infura.io/networks/ethereum/how-to/secure-a-project/project-id)
and optional [API key secret](../../../../developer-tools/dashboard/how-to/secure-an-api/api-key-secret/)
Include your [API key](../../../../../developer-tools/dashboard/get-started/create-api)
and optional [API key secret](../../../../../developer-tools/dashboard/how-to/secure-an-api/api-key-secret/)
to authorize your account to use the APIs.

:::tip
You can call the API with only an API key, and [include it as a path parameter](./index.md#supported-api-request-formats)
You can call the API with only an API key, and [include it as a path parameter](../api-reference/index.md#supported-api-request-formats)
instead of using the cURL authentication option (`-u`).
:::

Expand Down
6 changes: 3 additions & 3 deletions services/reference/gas-api/api-reference/basefeepercentile.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ less than or equal to the provided amount.

### Request

Include your [API key](https://docs.infura.io/networks/ethereum/how-to/secure-a-project/project-id)
and optional [API key secret](../../../../developer-tools/dashboard/how-to/secure-an-api/api-key-secret/)
Include your [API key](../../../../../developer-tools/dashboard/get-started/create-api)
and optional [API key secret](../../../../../developer-tools/dashboard/how-to/secure-an-api/api-key-secret/)
to authorize your account to use the APIs.

:::tip
You can call the API with only an API key, and [include it as a path parameter](./index.md#supported-api-request-formats)
You can call the API with only an API key, and [include it as a path parameter](../api-reference/index.md#supported-api-request-formats)
instead of using the cURL authentication option (`-u`).
:::

Expand Down
6 changes: 3 additions & 3 deletions services/reference/gas-api/api-reference/busythreshold.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ have been below this threshold, serving as a marker of network congestion when c

### Request

Include your [API key](https://docs.infura.io/networks/ethereum/how-to/secure-a-project/project-id)
and optional [API key secret](../../../../developer-tools/dashboard/how-to/secure-an-api/api-key-secret/)
Include your [API key](../../../../../developer-tools/dashboard/get-started/create-api)
and optional [API key secret](../../../../../developer-tools/dashboard/how-to/secure-an-api/api-key-secret/)
to authorize your account to use the APIs.

:::tip
You can call the API with only an API key, and [include it as a path parameter](./index.md#supported-api-request-formats)
You can call the API with only an API key, and [include it as a path parameter](../api-reference/index.md#supported-api-request-formats)
instead of using the cURL authentication option (`-u`).
:::

Expand Down
6 changes: 3 additions & 3 deletions services/reference/gas-api/api-reference/gasprices-type2.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ Recommended gas price details based of the level of urgency:

### Request

Include your [API key](https://docs.infura.io/networks/ethereum/how-to/secure-a-project/project-id)
and optional [API key secret](../../../../developer-tools/dashboard/how-to/secure-an-api/api-key-secret/)
Include your [API key](../../../../../developer-tools/dashboard/get-started/create-api)
and optional [API key secret](../../../../../developer-tools/dashboard/how-to/secure-an-api/api-key-secret/)
to authorize your account to use the APIs.

:::tip
You can call the API with only an API key, and [include it as a path parameter](./index.md#supported-api-request-formats)
You can call the API with only an API key, and [include it as a path parameter](../api-reference/index.md#supported-api-request-formats)
instead of using the cURL authentication option (`-u`).
:::

Expand Down
4 changes: 2 additions & 2 deletions services/reference/gas-api/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ View the [API reference content](api-reference/index.md) to view the `curl` comm

## Prerequisites

- A valid [Web3 API key](https://docs.infura.io/networks/ethereum/how-to/secure-a-project/project-id)
- A valid [Web3 API key](../../../../developer-tools/dashboard/get-started/create-api)
and optional [API key secret](../../../../developer-tools/dashboard/how-to/secure-an-api/api-key-secret/).
- [Node.js and npm installed](https://nodejs.org/en/download).

Expand All @@ -38,7 +38,7 @@ Install the `axios` package:
npm install axios
```

Install the [`dotenv`](https://docs.infura.io/tutorials/developer-tools/javascript-dotenv) package:
Install the [`dotenv`](../../how-to/javascript-dotenv.md) package:

```bash
npm install dotenv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ Returns tracing results by executing all transactions in the block specified by

- `blockHash`: (string) _[required]_ hash of the block to trace.
- Optional tracing options object with the following fields:
- `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](index.md#calltracer) or
[`prestateTracer`](index.md##prestatetracer).
- `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or
[`prestateTracer`](../debug/index.md#prestatetracer).
- `tracerConfig`: (object) _[optional]_ tracer configuration options:
- `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any
sub-calls. It eliminates the additional processing for each call frame.

## Returns

Depending on the specified tracer type, returns a [`callTracer`](index.md##calltracer) object or
[`prestateTracer`](index.md#prestatetracer) object.
Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md##calltracer) object or
[`prestateTracer`](../debug/index.md#prestatetracer) object.

## Example

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ const [txSent, setTxSent] = useState(null);
const [txSentInfura, setTxSentInfura] = useState(null);
```

#### Create the app frontend.
#### Create the app frontend

Next, create the app front-end that includes two forms for sending the transactions, and buttons for each provider to fetch the latest block number.

```javascript title="App.js" showLineNumbers
```javascript title="App.js"
// Configure the app frontend
return (
<div className="App">
Expand Down
12 changes: 6 additions & 6 deletions services/tutorials/ethereum/send-a-transaction/use-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In this two-part tutorial we'll use Rust and the [ethers-rs library](https://www
- Send a legacy transaction `("type":"0x0")`
- Send an EIP-1559 transaction `("type":"0x2")`

This tutorial uses the Sepolia testnet. Also see [Transaction types](../../../network-apis/ethereum/concepts/transaction-types.md).
This tutorial uses the Sepolia testnet. Also see [Transaction types](../../../concepts/transaction-types.md).

## Prerequisites

Expand Down Expand Up @@ -117,14 +117,14 @@ async fn main() -> Result<()> {
Next, make the following updates to the above code:

- On line 16 replace the `INFURA_API_KEY` with you API key from the
[Infura dashboard](../../../../developer-tools/dashboard/get-started/create-api/).
[Infura dashboard](../../../../../developer-tools/dashboard/get-started/create-api/).
- On line 26 replace the `SIGNER_PRIVATE_KEY` with the private key of your Ethereum account.
- On line 29, use a test address, such as [0xAED01C776d98303eE080D25A21f0a42D94a86D9c](https://sepolia.etherscan.io/address/0xaed01c776d98303ee080d25a21f0a42d94a86d9c).
- On line 29, use a test address, such as [`0xAED01C776d98303eE080D25A21f0a42D94a86D9c`](https://sepolia.etherscan.io/address/0xaed01c776d98303ee080d25a21f0a42d94a86d9c).

:::tip Secure your keys
To better secure your keys, follow the recommended approach described in the section [Create the .env file](../../../tutorials/ethereum/send-a-transaction/use-web3.js.md#4-create-the-env-file).
:::

`
### 4. Run the code

From the `infura_rs` directory, run the code.
Expand All @@ -147,13 +147,13 @@ Sent tx: {"hash":"0x3cb5a5fac18e889457905351c9950108873a8f0789fe83e8a733b8367f49
Tx receipt: {"transactionHash":"0x3cb5a5fac18e889457905351c9950108873a8f0789fe83e8a733b8367f49a67a","transactionIndex":"0x3d","blockHash":"0xa2787f5ec22d491588a8ffc6e7cec3ed97fccac4845e448650d02fce672a657c","blockNumber":"0x3a7608","from":"0xe33fef60722ba79989aeaa1b6e6daf7f351c0fbb","to":"0xaed01c776d98303ee080d25a21f0a42d94a86d9c","cumulativeGasUsed":"0x406e87","gasUsed":"0x5208","contractAddress":null,"logs":[],"status":"0x1","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","type":"0x0","effectiveGasPrice":"0x3cc"}
```

In the above transaction receipt, the transaction type shows `"type":"0x0"` indicating that this was a legacy transaction. Next, we will send an EIP-1559 transaction, which is of the type `"type":"0x2"`. See below.
In the above transaction receipt, the transaction type shows `"type":"0x0"` indicating that this was a legacy transaction. Next, we will send an EIP-1559 transaction, which is of the type `"type":"0x2"`.

## Send an EIP-1559 transaction

### 1. Modify the main code

To send an EIP-1559 transaction, i.e., of the `"type":"0x2"` you must use `Eip1559TransactionRequest` instead of `TransactionRequest` in the `main.rs` code. Replace the code in `main.rs` with the below code.
To send an EIP-1559 transaction, i.e., of the `"type":"0x2"` you must use `Eip1559TransactionRequest` instead of `TransactionRequest` in the `main.rs` code. Replace the code in `main.rs` with the following code.

```rust showLineNumbers
use ethers::{
Expand Down
2 changes: 1 addition & 1 deletion wallet/reference/sdk-js-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ infuraAPIKey: process.env.INFURA_API_KEY
</TabItem>
</Tabs>

The [Infura API key](https://docs.infura.io/networks/ethereum/how-to/secure-a-project/project-id) to
The [Infura API key](../../../../developer-tools/dashboard/get-started/create-api) to
use for RPC requests.
Configure this option to [make read-only RPC requests from your dapp](../how-to/use-sdk/javascript/make-read-only-requests.md).

Expand Down

0 comments on commit 3a9dd85

Please sign in to comment.