From 358ba2900de3a587dfe0d5d1048bc398c4b330d7 Mon Sep 17 00:00:00 2001 From: Alexandra Tran Date: Tue, 5 Sep 2023 16:14:08 -0700 Subject: [PATCH 1/2] Doc fields for EIP-1559 txns Signed-off-by: Alexandra Tran --- docs/reference/api/json-rpc.md | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/docs/reference/api/json-rpc.md b/docs/reference/api/json-rpc.md index 8a1807c..cf7231a 100644 --- a/docs/reference/api/json-rpc.md +++ b/docs/reference/api/json-rpc.md @@ -98,7 +98,9 @@ Transaction object: | `from` | Data, 20 bytes | Required | Address of the sender. | | `to` | Data, 20 bytes | Optional for contract creation | Address of the receiver. `null` if this is a contract creation transaction. | | `gas` | Quantity | Optional | Gas provided by the sender. The default is `90000`. | -| `gasPrice` | Quantity | Optional | Gas price provided by the sender in Wei. The default is `0`. | +| `gasPrice` | Quantity | Optional | Gas price provided by the sender in Wei. The default is `0`. Used only in non [EIP-1559] transactions. | +| `maxPriorityFeePerGas` | Quantity | Optional | Maximum fee, in Wei, the sender is willing to pay per gas above the base fee. Used only in [EIP-1559] transactions. | +| `maxFeePerGas` | Quantity | Optional | Maximum total fee (base fee + priority fee), in Wei, the sender is willing to pay per gas. Used only in [EIP-1559] transactions. | | `nonce` | Quantity | Optional | Number of transactions made by the sender before this one. Must be specified if using [GoQuorum](https://docs.goquorum.consensys.net/). | | `value` | Quantity | Optional | Value transferred in Wei. | | `data` | Quantity | Optional | Compiled contract code or hash of the invoked method signature and encoded parameters. | @@ -139,13 +141,15 @@ Transaction object: | Key | Type | Required/Optional | Value | | --- | :-- | --- | --- | -| **from** | Data, 20 bytes | Required | Address of the sender. | -| **to** | Data, 20 bytes | Optional for contract creation | Address of the receiver. `null` if this is a contract creation transaction. | -| **gas** | Quantity | Optional | Gas provided by the sender. The default is `90000`. | -| **gasPrice** | Quantity | Optional | Gas price provided by the sender in Wei. The default is `0`. | -| **nonce** | Quantity | Optional | Number of transactions made by the sender before this one. Must be specified if using [GoQuorum](https://consensys.net/docs/goquorum/). | -| **value** | Quantity | Optional | Value transferred in Wei. | -| **data** | Quantity | Optional | Compiled contract code or hash of the invoked method signature and encoded parameters. | +| `from` | Data, 20 bytes | Required | Address of the sender. | +| `to` | Data, 20 bytes | Optional for contract creation | Address of the receiver. `null` if this is a contract creation transaction. | +| `gas` | Quantity | Optional | Gas provided by the sender. The default is `90000`. | +| `gasPrice` | Quantity | Optional | Gas price provided by the sender in Wei. The default is `0`. Used only in non [EIP-1559] transactions. | +| `maxPriorityFeePerGas` | Quantity | Optional | Maximum fee, in Wei, the sender is willing to pay per gas above the base fee. Used only in [EIP-1559] transactions. | +| `maxFeePerGas` | Quantity | Optional | Maximum total fee (base fee + priority fee), in Wei, the sender is willing to pay per gas. Used only in [EIP-1559] transactions. | +| `nonce` | Quantity | Optional | Number of transactions made by the sender before this one. Must be specified if using [GoQuorum](https://consensys.net/docs/goquorum/). | +| `value` | Quantity | Optional | Value transferred in Wei. | +| `data` | Quantity | Optional | Compiled contract code or hash of the invoked method signature and encoded parameters. | :::tip @@ -176,3 +180,7 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{ ``` + + + +[EIP-1559]: https://eips.ethereum.org/EIPS/eip-1559 \ No newline at end of file From 9217f158ef19f431c5a3d603b3fadc431d2b5c17 Mon Sep 17 00:00:00 2001 From: Alexandra Tran Date: Wed, 6 Sep 2023 13:10:37 -0700 Subject: [PATCH 2/2] remove "per gas" Signed-off-by: Alexandra Tran --- docs/reference/api/json-rpc.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/api/json-rpc.md b/docs/reference/api/json-rpc.md index cf7231a..29ebe53 100644 --- a/docs/reference/api/json-rpc.md +++ b/docs/reference/api/json-rpc.md @@ -99,8 +99,8 @@ Transaction object: | `to` | Data, 20 bytes | Optional for contract creation | Address of the receiver. `null` if this is a contract creation transaction. | | `gas` | Quantity | Optional | Gas provided by the sender. The default is `90000`. | | `gasPrice` | Quantity | Optional | Gas price provided by the sender in Wei. The default is `0`. Used only in non [EIP-1559] transactions. | -| `maxPriorityFeePerGas` | Quantity | Optional | Maximum fee, in Wei, the sender is willing to pay per gas above the base fee. Used only in [EIP-1559] transactions. | -| `maxFeePerGas` | Quantity | Optional | Maximum total fee (base fee + priority fee), in Wei, the sender is willing to pay per gas. Used only in [EIP-1559] transactions. | +| `maxPriorityFeePerGas` | Quantity | Optional | Maximum fee, in Wei, the sender is willing to pay above the base fee. Used only in [EIP-1559] transactions. | +| `maxFeePerGas` | Quantity | Optional | Maximum total fee (base fee + priority fee), in Wei, the sender is willing to pay. Used only in [EIP-1559] transactions. | | `nonce` | Quantity | Optional | Number of transactions made by the sender before this one. Must be specified if using [GoQuorum](https://docs.goquorum.consensys.net/). | | `value` | Quantity | Optional | Value transferred in Wei. | | `data` | Quantity | Optional | Compiled contract code or hash of the invoked method signature and encoded parameters. | @@ -145,8 +145,8 @@ Transaction object: | `to` | Data, 20 bytes | Optional for contract creation | Address of the receiver. `null` if this is a contract creation transaction. | | `gas` | Quantity | Optional | Gas provided by the sender. The default is `90000`. | | `gasPrice` | Quantity | Optional | Gas price provided by the sender in Wei. The default is `0`. Used only in non [EIP-1559] transactions. | -| `maxPriorityFeePerGas` | Quantity | Optional | Maximum fee, in Wei, the sender is willing to pay per gas above the base fee. Used only in [EIP-1559] transactions. | -| `maxFeePerGas` | Quantity | Optional | Maximum total fee (base fee + priority fee), in Wei, the sender is willing to pay per gas. Used only in [EIP-1559] transactions. | +| `maxPriorityFeePerGas` | Quantity | Optional | Maximum fee, in Wei, the sender is willing to pay above the base fee. Used only in [EIP-1559] transactions. | +| `maxFeePerGas` | Quantity | Optional | Maximum total fee (base fee + priority fee), in Wei, the sender is willing to pay. Used only in [EIP-1559] transactions. | | `nonce` | Quantity | Optional | Number of transactions made by the sender before this one. Must be specified if using [GoQuorum](https://consensys.net/docs/goquorum/). | | `value` | Quantity | Optional | Value transferred in Wei. | | `data` | Quantity | Optional | Compiled contract code or hash of the invoked method signature and encoded parameters. |