Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc fields for EIP-1559 txns #204

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions docs/reference/api/json-rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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. |
Expand Down Expand Up @@ -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 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. |

:::tip

Expand Down Expand Up @@ -176,3 +180,7 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{
```

<!--/tabs-->

<!--links-->

[EIP-1559]: https://eips.ethereum.org/EIPS/eip-1559