From 37ec7868dd2caad012c66a8eb4a039fa04f5034d Mon Sep 17 00:00:00 2001 From: "lightclient@protonmail.com" Date: Tue, 1 Jun 2021 17:39:16 +0200 Subject: [PATCH] add descriptions for tx price data --- json-rpc/spec.json | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/json-rpc/spec.json b/json-rpc/spec.json index 2fff28892d..2bedad6679 100644 --- a/json-rpc/spec.json +++ b/json-rpc/spec.json @@ -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": { @@ -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",