diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index 79d03a3..b8ec8d6 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -1418,25 +1418,21 @@ "description": "The transactions in this block", "type": "array", "items": { - "title": "transactions in block", "type": "object", - "allOf": [ - { + "title": "transaction and receipt", + "properties": { + "transaction": { "title": "transaction", "$ref": "#/components/schemas/TXN" }, - { - "type": "object", - "properties": { - "receipt": { - "title": "receipt", - "$ref": "#/components/schemas/TXN_RECEIPT" - } - }, - "required": [ - "receipt" - ] + "receipt": { + "title": "receipt", + "$ref": "#/components/schemas/TXN_RECEIPT_IN_BLOCK" } + }, + "required": [ + "transaction", + "receipt" ] } } @@ -3208,6 +3204,10 @@ } ] }, + "TXN_RECEIPT_IN_BLOCK": { + "title": "receipt in block", + "$ref": "#/components/schemas/PENDING_TXN_RECEIPT" + }, "PENDING_COMMON_RECEIPT_PROPERTIES": { "title": "Pending common receipt properties", "description": "Common properties for a pending transaction receipt",