diff --git a/json-rpc/spec.json b/json-rpc/spec.json index fe84cd9b94..c53b280382 100644 --- a/json-rpc/spec.json +++ b/json-rpc/spec.json @@ -145,6 +145,21 @@ } } }, + { + "name": "eth_createAccessList", + "summary": "Creates an access list for the given transaction.", + "params": [ + { + "$ref": "#/components/contentDescriptors/Transaction" + }, + { + "$ref": "#/components/contentDescriptors/BlockNumber" + } + ], + "result": { + "$ref": "#/components/contentDescriptors/AccessListResult" + } + }, { "name": "eth_chainId", "summary": "Returns the currently configured chain id", @@ -1774,6 +1789,25 @@ ] } }, + "AccessListResult": { + "name": "accessListResult", + "description": "Returns an accesslist, the gas used and an internal error if available", + "schema": { + "title": "ALResult", + "type": "object", + "properties": { + "accessList": { + "$ref": "#/components/schemas/AccessList" + }, + "gasUsed": { + "$ref": "#/components/schemas/Integer" + }, + "vmErr": { + "type": "string" + } + } + } + }, "UncleCountResult": { "name": "uncleCountResult", "description": "The Number of total uncles in the given block",