diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index 73548eb..29ebb0f 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -2088,9 +2088,13 @@ "$ref": "#/components/schemas/FELT", "description": "The fee that was charged by the sequencer" }, - "status": { - "title": "Status", - "$ref": "#/components/schemas/TXN_STATUS" + "execution_status": { + "title": "Execution status", + "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" + }, + "finality_status": { + "title": "Finality status", + "$ref": "#/components/schemas/TXN_FINALITY_STATUS" }, "block_hash": { "title": "Block hash", @@ -2107,7 +2111,7 @@ "$ref": "#/components/schemas/MSG_TO_L1" } }, - "revert_reason":{ + "revert_reason": { "title": "Revert reason", "name": "revert reason", "description": "the revert reason for the failed execution", @@ -2125,7 +2129,8 @@ "required": [ "transaction_hash", "actual_fee", - "status", + "finality_status", + "execution_status", "block_hash", "block_number", "messages_sent", @@ -2333,20 +2338,23 @@ "$ref": "#/components/schemas/EVENT" } }, - "revert_reason":{ + "revert_reason": { "title": "Revert reason", "name": "revert reason", "description": "the revert reason for the failed execution", "type": "string" }, - "status":{ - "title": "Transaction status", + "finality_status": { + "title": "Finality status", "type": "string", "enum": [ - "ACCEPTED_ON_L2", - "REVERTED" + "ACCEPTED_ON_L2" ], - "description": "The status of the transaction" + "description": "The finality status of the transaction" + }, + "execution_status": { + "title": "Execution status", + "$ref": "#/components/schemas/TXN_EXECUTION_STATUS" } }, "required": [ @@ -2354,7 +2362,9 @@ "actual_fee", "type", "messages_sent", - "events" + "events", + "finality_status", + "execution_status" ] }, "PENDING_DEPLOY_TXN_RECEIPT": { @@ -2447,15 +2457,23 @@ "payload" ] }, - "TXN_STATUS": { - "title": "Transaction status", + "TXN_FINALITY_STATUS": { + "title": "Finality status", "type": "string", "enum": [ "ACCEPTED_ON_L2", - "ACCEPTED_ON_L1", + "ACCEPTED_ON_L1" + ], + "description": "The finality status of the transaction" + }, + "TXN_EXECUTION_STATUS": { + "title": "Execution status", + "type": "string", + "enum": [ + "SUCCEDED", "REVERTED" ], - "description": "The status of the transaction" + "description": "The execution status of the transaction" }, "TXN_TYPE": { "title": "Transaction type",