From 00c5d1a2b08a33dd71cfaf6995a61aaa069aa4f6 Mon Sep 17 00:00:00 2001 From: Thiago Ribeiro <62709592+thiagodeev@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:34:28 -0300 Subject: [PATCH] Add txHash field to the transaction scope --- api/starknet_api_openrpc.json | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index 1e7927d..c1e30b5 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -1414,8 +1414,24 @@ "title": "transaction and receipt", "properties": { "transaction": { - "title": "transaction", - "$ref": "#/components/schemas/TXN" + "allOf": [ + { + "title": "transaction", + "$ref": "#/components/schemas/TXN" + }, + { + "type": "object", + "properties": { + "transaction_hash": { + "title": "transaction hash", + "$ref": "#/components/schemas/TXN_HASH" + } + }, + "required": [ + "transaction_hash" + ] + } + ] }, "receipt": { "title": "receipt", @@ -3987,4 +4003,4 @@ } } } -} \ No newline at end of file +}