Skip to content

Commit

Permalink
Merge pull request #205 from lightclient/clean-up-spec
Browse files Browse the repository at this point in the history
Clean up spec
  • Loading branch information
timbeiko authored Jun 2, 2021
2 parents 9362c66 + 37ec786 commit ece683d
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions json-rpc/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1518,18 +1518,20 @@
"Transaction": {
"title": "transaction",
"type": "object",
"required": [
"gas",
"gasPrice",
"nonce"
],
"allOf": [
{
"type": "object",
"required": [
"from",
"gas",
"gasPrice",
"nonce"
"hash",
"input",
"nonce",
"to",
"value",
"v",
"r",
"s"
],
"properties": {
"blockHash": {
Expand Down Expand Up @@ -1600,24 +1602,30 @@
{
"oneOf": [
{
"title": "Block <1559> to PRESENT",
"title": "EIP-1559 fee market parameters",
"type": "object",
"description": "EIP-1559 dynamic fee transactions have two fee parameters.",
"required": [
"maxFeePerGas",
"maxPriorityFeePerGas"
],
"properties": {
"maxPriorityFeePerGas": {
"title": "maxPriorityFeePerGas",
"title": "transactionMaxPriorityFeePerGas",
"description": "Maximum fee per gas the sender is willing to pay to miners in wei",
"$ref": "#/components/schemas/Integer"
},
"maxFeePerGas": {
"title": "maxFeePerGas",
"title": "transactionMaxFeePerGas",
"description": "The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei",
"$ref": "#/components/schemas/Integer"
}
}
},
{
"title": "Block 0 to Block <1559>",
"title": "Legacy fee market parameters",
"type": "object",
"description": "Legacy transactions and EIP-2930 access list transaction include this parameter.",
"properties": {
"gasPrice": {
"title": "transactionGasPrice",
Expand Down

0 comments on commit ece683d

Please sign in to comment.